Timo Nentwig wrote:
Hi!
li
{
display: inline;
}
<li>foo bar</li>
<li>blah</li>
This make both list item to appear next to another rather then from top
to bottom. However, I want both to have the same width. Setting width in
the above CSS doesn't so the job.
That's because the width property doesn't apply to non-replaced inline
elements.
<URL:http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-width>
What am I going to do here?
Either:
li {
display: table-cell;
width: 10em;
}
....or:
li {
display: block;
width: 10em;
float: left;
}
The former doesn't work in Internet Explorer, the latter may require a
cleared element following it in the flow.
By the way, this is a stylesheet question, which is better off in the
<URL:news:comp.infosystems.www.authoring.styleshee ts> newsgroup.
Crossposted, followups set.
--
Jim Dabell