no, ie6-7 don't need but the same display:inline used before.
wrapping. on a menu. not desirable. again, think about multiline menus.
oh, and i can do what you say i can't (wrapping out of the question, since in the example you provided the white space bug has no part; or even a sensible place in this thread):
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
<style type="text/css">
body {
width:50%;
margin:0 auto;
text-align:center;
border:1px solid #000;
}
ul {
display:inline-block;
margin:0;
padding:10px; /*no problem, i can do it here*/
list-style:none;
}
li {
display:table-cell;
margin:10px 0; /*sorry no can do in table-cells*/
padding:10px;
background:silver;
}
</style>
</head>
<body>
<ul>
<li>Item One</li>
<li>Item Two</li>
<li>Item Three</li>
<li>Item Four</li>
<li>Item Five</li>
</ul>
</body>
</html>
maybe you misunderstood. i said: replace inline-block for this example. for the better table-cell. and it does replace it. moreover, i've used inline-block my self. on the <ul>.
your logic must be screaming somehow, i hope:
by the way, using display:table on the parent to make the inline-block child behave like table-cell is a thing that somewhat overrides your idea of not changing the display:inline-block on the child, don't you think?
Bookmarks