Click to See Complete Forum and Search --> : gap on the left even with 0 margin and padding
web_roshan
08-16-2006, 01:17 PM
Can anyone tell me why there is a big gap on the LEFT in the left navigation menu and the div containing the menu on this page
http://n.1asphost.com/rosty/kjsc/index.asp
I have set my CSS code
.menu ul{
margin:0;
padding:0
}
Can anyone tell me why there is a big gap on the LEFT in the left navigation menu and the div containing the menu on this page
http://n.1asphost.com/rosty/kjsc/index.asp
I have set my CSS code
.menu ul{
margin:0;
padding:0
}
Try getting rid of "ul"
.menu {
margin:0;
padding:0
}
web_roshan
08-16-2006, 11:35 PM
sae, thanks a lot for the help.
It worked.
Ideally, a ul's li would generally be indented from left, at a distance. Therefore, the class's ul should have been to the extreme left.
Can you give me some pointers or references that actually would explain me how this code worked and not the former.
Kravvitz
08-17-2006, 12:04 AM
Because your selector applied to all <ul> elements inside an element belonging to the "menu" class. What you want is just any element belonging to the "menu" class or all <ul> elements belonging to the "menu" class, which would be this:
ul.menu {
margin:0;
padding:0;
}
web_roshan
08-17-2006, 01:16 AM
Ok. Now I get it.