Experts,
I recently decided to start designing a new website, its a hobby of mine. This time I went way out of my comfort zone and started making my own images. However I seem to have run into a problem that I would like some advice on. The image for my navigation bar displays incorrectly in IE.
Link to the temporary website:
http://bogojoker.com/alpha/[Be advised you cannot use the IE Tab extension inside Firefox. The site has sIFR Flash Rendered text which seems to completely crash Firefox when using the excellent extension. So please open externally in an IE browser]
The problem:
The tab image displays correctly in Firefox, but it seems to be cropped in Internet Explorer (I am using IE7 but I assume 6 has the same issue). I would like IE to look similiar to Firefox.
The XHTML: [index.html]
Markup for the list is quite simple. The menu container just liquidly positions the menu at the top right of the screen. The list is composed of <a>'s inside <li>'s. The selected menu element has the "tab" class on the <li> element. Easy to see if you just look at it:
<!-- Menu -->
<div id="menu-container">
<ul id="menu">
<li><a href="#">home</a></li>
<li class="tab"><a href="#">blog</a></li>
<li><a href="#">news</a></li>
<li ><a href="#">about</a></li>
</ul>
</div>
The CSS: [bogojoker.com/alpha/css/s
tyle.css]
My CSS is documented well enough, just follow the comments to /* Menu */ near the top. The idea behind the menu is this:
- Give the <li> elements a nice text style
- Control the <a> elements text and hover styles and some padding
- Give the .tab element a background image and some extra padding
Conclusion:
I am not sure why the image does not show completely in IE. I suspected it might be because I am putting the background image on the <li> element and not the <a> element, however I don't know why that might be. I played around with z-indexs and that did not seem to work. I would appreciate any suggestions and I will certainly try them out and get back to you as quickly as I can.
Thank You,
BogoJoker
Joe P
Start Free Trial