Is there a way to get an unordered list to start further to the left? I am using the list in a narrow menu and horizontal space is at a premium. The attached pic shows where the list is appearing.
try using padding-left:0px; or margin-left:0px; i can't remember which one of those is the right one but one of them works, im also assuming u may know basic css
doing it like this means that only this UL shall be affected by this CSS. Other UL's will be controlled by whatever div name they have been placed within.
HTH
Just adding this in case you might need it. If you will have more than one UL in the div say, for example, when you have separate blocks of bulleted points in one page of text, then you can assign a class to each UL in that div like this
div#divname ul#1stclassname li {
properties here
}
div#divname ul#2ndclassname li {
properties here
}
Bazz
__________________
"The day you stop learning is the day you become obsolete"! - my late Dad.
The div that the list is in has a 5px padding. The image shows that the list is moved over much more than 5px. The list automatically indents - it doesn't start flush to the left. What I want to do is remove the indent. Is this possible? Is there a way to simulate the removal of the indent by having the bullets flush (or very close to flush) with the left edge of the div?
The margin-left worked for IE but not FireFox. How can I get it to work in both? The margin simply moved the list to the right even more in FireFox.
The attached pics show what happens in FF.
I ahd an almost identical problem last night where my list on the left of the page, went off screen in IE and was fine in FF. However, when I coded it better (well, it must have been better coz it worked), it's the same both in IE and FF.
I was fiddling with it so much that I can't remember the specific chjange which fixed it so I'm off now to c+P the CSS for you.
Trancedm! Thank you. That did the trick. It appears the same in both browsers now.
_Aerospace_Eng_ ! You were right but I need to use both elements you mentioned, not just one or the other as suggested.