I have a menu in a container div of 1000px that sits inside another div so that I can center it.
everything displays perfectly in FF, Safari and Chrome but in IE9 the last menu item drops to another line.
Ive heard about IE adding extra padding or margin space but have had little to do with it until now. How do I remove the hidden padding or margin, if that is what is going wrong?
I got sick of making things both validate and display properly in every single new mutation of IE... I've noticed that a number of my favorite sites now no longer work in IE9... makes me not want to use IE at all...
So instead of fiddling and wasting hours with it, I just resorted to a little bit of a 'hack' and use a conditional to make it look pretty and move on to the next problem, knowing that later versions of IE will screw up more and more things...
HTML Code:
<h2>HTML Conditional Tags</h2><!--[if !IE]><!--><p>This is NOT visible to IE, so works with all other browsers.</p><!--<![endif]--><!--[if IE]><p>This is visible only to Internet Explorer, so it can be any HTML at all</p><![endif]-->
I got sick of making things both validate and display properly in every single new mutation of IE... I've noticed that a number of my favorite sites now no longer work in IE9... makes me not want to use IE at all...
I don't want to defend IE. But I am a web designer and developer and, with no exception, all the sites I have created in the last 5-6 years still work and look OK now, with no changes, even in the last versions of the new browsers (IE9 included).
Whenever you code carefully, simple, as close to the standards as possible, crossbrowser in need, there should not be any problem now or in the near future.
I have also found out since that the problem doesn't lie within the padding or margins, IE 9 displays the Arial font slightly different than the other browsers, some of the capitol letters are slightly wider.
I have also found out since that the problem doesn't lie within the padding or margins, IE 9 displays the Arial font slightly different than the other browsers, some of the capitol letters are slightly wider.
I doubt. Have you given the font a certain size in pixels?
Bookmarks