![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi, I'm having a problem w/bulleted lists.. as you know FF and IE do diff margins/spacing for these, so have to do stuff like /* IE: */ * html ul.headlines {margin-left:20px; margin-top:0px; } /* FF: */ html> body ul.headlines {margin-left:-20px; margin-top:0px; } |
#3
| |||
| |||
|
|
I'm having a problem w/bulleted lists.. as you know FF and IE do diff margins/spacing for these, so have to do stuff like /* IE: */ * html ul.headlines {margin-left:20px; margin-top:0px; } /* FF: */ html> body ul.headlines {margin-left:-20px; margin-top:0px; } two problems: 1) it looks diff in IE6 from IE7 |
|
2) the browser-specific "hack" for some reason is not working here.. code meant only for FF is picked up by IE and vice-versa... |
|
this is for a bulleted list in a fairly small space (approx 250 x 300..) so need to do very specific spacing.. |
#4
| |||
| |||
|
|
maya schrieb: hi, I'm having a problem w/bulleted lists.. as you know FF and IE do diff margins/spacing for these, so have to do stuff like /* IE: */ * html ul.headlines {margin-left:20px; margin-top:0px; } /* FF: */ html> body ul.headlines {margin-left:-20px; margin-top:0px; } Did you try both margin-left _and_ padding-left for both ul _and_ li? |

#5
| |||
| |||
|
|
hi, I'm having a problem w/bulleted lists.. as you know FF and IE do diff margins/spacing for these, so have to do stuff like /* IE: */ * html ul.headlines {margin-left:20px; margin-top:0px; } /* FF: */ html> body ul.headlines {margin-left:-20px; margin-top:0px; } two problems: 1) it looks diff in IE6 from IE7 2) the browser-specific "hack" for some reason is not working here.. code meant only for FF is picked up by IE and vice-versa... this is for a bulleted list in a fairly small space (approx 250 x 300..) so need to do very specific spacing.. would appreciate suggestions.. thank you.. |
#6
| |||
| |||
|
|
ul.headlines { margin: 0 0 0 25px; padding: 0; } Will look the same in all above. |
#7
| |||
| |||
|
|
Jonathan N. Little wrote: ul.headlines { margin: 0 0 0 25px; padding: 0; } Will look the same in all above. No, I'm afraid it won't. IE puts the list marker in the UL padding, which you've just blown away. http://www.bergamotus.ws/samples/cross-browser-bullet-lists.html |
#8
| |||
| |||
|
|
I don't know what IE does, but it shouldn't matter. |
|
Either margin or padding on the UL should therefore result in some space for the bullet, |
|
unless IE is so broken it positions the bullet relative to the UL's left edge instead of relative to the LI's left edge. |
#9
| |||
| |||
|
|
Jonathan N. Little wrote: ul.headlines { margin: 0 0 0 25px; padding: 0; } Will look the same in all above. No, I'm afraid it won't. IE puts the list marker in the UL padding, which you've just blown away. http://www.bergamotus.ws/samples/cross-browser-bullet-lists.html |
#10
| |||
| |||
|
|
I'm having a problem w/bulleted lists.. as you know FF and IE do diff margins/spacing for these, so have to do stuff like /* IE: */ * html ul.headlines {margin-left:20px; margin-top:0px; } /* FF: */ html> body ul.headlines {margin-left:-20px; margin-top:0px; } |
![]() |
| Thread Tools | |
| Display Modes | |
| |