Topic: li Element Inline poistion width problem (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Phoenix |
![]() My li element is styled as inline code: ul li { display:inline }
|
Paranoid (IV) Inmate From: f(x) |
![]() |
Lunatic (VI) Inmate From: under the bed |
![]() If you need a set width and height, I would float the li's instead of setting them to inline. |
Bipolar (III) Inmate From: Phoenix |
![]() Ok, floating the LI elements... thanks! |
Paranoid (IV) Inmate From: Norway |
![]() Or you could use the CSS2.1 display:inline-block; ... but that would rule out non CSS2.1 browsers a.k.a Internet Explorer and Firefox. As of today the only solution that work about everywhere is to float the LIs and size them by nesting a display:block; element. *sigh* |
Paranoid (IV) Inmate From: Florida |
![]() quote:
|
Paranoid (IV) Inmate From: Norway |
![]() I possibility went off a bit here, but the lack of support of inline-block is one of my pet peeves. This type of display is REALLY useful. Not having that forces everyone to hack around using float and a child element. Like we don't have enough to work around already. |
Paranoid (IV) Inmate From: Florida |
![]() Yeah, I feel you on inline-block. It is an exaggeration, though. |