|
Posted by Ed Seedhouse on 11/03/06 01:32
On Thu, 02 Nov 2006 16:13:56 -0600, Ben C <spamspam@spam.eggs> wrote:
>On 2006-11-02, Doug <dmly.usa@gmail.com> wrote:
>> Hi all,
>> I would like to display the list horizontally. I've learned that the li
>> style need to be inline.
>> I have the code as follow but it doesn't work.
>> Thank you for helping
>
>Make li float: left and display: block.
>You can also make it float: left and display: inline, the effect is the
>same. But I think display: block makes more sense.
The CSS standard requires that any floated element is given
display:block; no matter what your CSS says. All browsers I know of
obey this. Some bugs in IE are fixed with a display:inline; declaration
but IE will still render the element as a block, not inline.
Navigation:
[Reply to this message]
|