Topic: li Element Inline poistion width problem |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Phoenix |
posted 12-07-2007 07:24
My li element is styled as inline code: ul li { display:inline }
|
Paranoid (IV) Inmate From: f(x) |
posted 12-07-2007 11:02 |
Lunatic (VI) Inmate From: under the bed |
posted 12-07-2007 14:10
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 |
posted 12-09-2007 05:08
Ok, floating the LI elements... thanks! |
Paranoid (IV) Inmate From: Norway |
posted 12-09-2007 16:36
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 |
posted 12-09-2007 20:42
quote:
|
Paranoid (IV) Inmate From: Norway |
posted 12-10-2007 00:21
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 |
posted 12-10-2007 03:21
Yeah, I feel you on inline-block. It is an exaggeration, though. |