Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Sub menu weird styling after margin
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Sub menu weird styling after margin
#13695
Sub menu weird styling after margin 13 Years ago Karma: 0
Hi Admin

I've added a margin to my sub menu so that it has a space between the main menu, but I also added an arrow for the mouse over part, if you have a look at my sub menu, it's doing something weird and I don't know how to fix it. Can you help me please?

Heres my link boerenooi.za.net/


This is the styling I have so far

DIV#{$id}.yui-skin-sam DIV.bd DIV.bd,
DIV#{$id}.yui-skin-sam DIV.bd DIV.bd LI
{
background: url(www.boerenooi.za.net/modules/mod_ariyuimenu/mod_ariyuimenu/js/assets/menu/sam/subbg.png);
color: #fff;
margin-left: 30px;
text-align: left;
}

DIV#{$id}.yui-skin-sam DIV.bd DIV.bd LI.yuimenuitem-selected
{
background-image: url(www.boerenooi.za.net/modules/mod_ariyuimenu/mod_ariyuimenu/js/assets/menu/sam/arrow.png);
background-position: left center;
background-repeat: no-repeat;
color: #fff;
}
body DIV#{$id}.yui-skin-sam DIV.bd DIV.bd a.yuimenuitemlabel
{
color: #FFF;
}
Last Edit: 2011/04/14 13:14 By boerenooi.
The administrator has disabled public write access.
 
#13696
Re:Sub menu weird styling after margin 13 Years ago Karma: 747
Provide screenshot where we can see how the menu should look.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#13697
Re:Sub menu weird styling after margin 13 Years ago Karma: 0
Thanks Admin, this is what it should look like.
The administrator has disabled public write access.
 
#13698
Re:Sub menu weird styling after margin 13 Years ago Karma: 747
Remove "margin-left: 30px" CSS property from custom CSS rules and add the next CSS rule:

Code:


div#{$id}.yui-skin-sam div.bd div.bd li
{
 padding-left: 10px;
}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#13699
Re:Sub menu weird styling after margin 13 Years ago Karma: 0
That didn't make a difference, it just went back to sitting next to the main menu. I also noticed that the arrow doesn't show in IE8
The administrator has disabled public write access.
 
#13700
Re:Sub menu weird styling after margin 13 Years ago Karma: 747
You defined "padding-left" for two elements:

DIV#{$id}.yui-skin-sam DIV.bd DIV.bd,
DIV#{$id}.yui-skin-sam DIV.bd DIV.bd LI

but in our previous post we specified only one element:

div#{$id}.yui-skin-sam div.bd div.bd li

In any case, we can recommend to use FireBug addon for FireFox browser that investigate HTML elements styles. In IE 8 you can press F12 and use "Developer Tools". Information about menu CSS classed can be found here.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12