I would like my entire LI to be displayed on one line, so I set each LI display property to an inline block and set white-space = nowrap on the parent UL. I get the expected shellless behavior in FireFox and Chrome, but IE8 ignores nowrap and displays the elements under another.
Any idea what I'm doing wrong?
Here is the HTML and CSS ...
<html> <head> <style type="text/css"> li { display: inline-block; list-style: none outside none; padding: 0px 10px 0px 10px; white-space: nowrap; } ul { white-space: nowrap; } </style> </head> <body> <div style="float: left; width: 300px;"> <ul> <li> Menu 1 </li> <li> Menu Menu Menu 2 </li> <li> Menu 3 </li> <li> Menu 4 </li> </ul> </div> </body> </html>
source share