![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hello. I can fix the problem using float:left in the LI elements but I need to understand why is Mozilla drawing it whith that gap. |
#2
| |||
| |||
|
|
Using float:left is the correct solution |
#3
| |||
| |||
|
|
On 7 Feb, 13:48, C A Upsdell <cupsd... (AT) upsdell (DOT) invalid> wrote: Using float:left is the correct solution It's certainly one solution. Is there any concrete reason to favour either display:inline or float:left for implementing "inline lists" ? |
#4
| |||
| |||
|
|
On 2008-02-08, Andy Dingley <ding... (AT) codesmiths (DOT) com> wrote: On 7 Feb, 13:48, C A Upsdell <cupsd... (AT) upsdell (DOT) invalid> wrote: Using float:left is the correct solution It's certainly one solution. Is there any concrete reason to favour either display:inline or float:left for implementing "inline lists" ? If you want to set widths or heights on the items, or guarantee their adjacency, you need floats really |
|
(or inline-blocks of course when people start supporting them). |
#5
| |||
| |||
|
|
On 8 Feb, 19:25, Ben C <spams... (AT) spam (DOT) eggs> wrote: On 2008-02-08, Andy Dingley <ding... (AT) codesmiths (DOT) com> wrote: On 7 Feb, 13:48, C A Upsdell <cupsd... (AT) upsdell (DOT) invalid> wrote: Using float:left is the correct solution It's certainly one solution. Is there any concrete reason to favour either display:inline or float:left for implementing "inline lists" ? If you want to set widths or heights on the items, or guarantee their adjacency, you need floats really Widths is a good point. Generally though I don't care - set a bit of margin & padding, let the text content take care of the rest. For most situations with a non-block list, I care about spacing between words, but not the overall item widths. (or inline-blocks of course when people start supporting them). I'd deliberately ignored inline-block. Tired of waiting for support 8- ( |
![]() |
| Thread Tools | |
| Display Modes | |
| |