June 17, 201016 yr Hello, I am in need of some help with my tabbed navigation, I am using three images (left, right and centre) and my code works perfectly fine in Firefox but as always, Internet Explorer is a pain in the ass. In Internet explorer it does not show the full height of the tabs and the centre background image is raised above the left and right background images (about mid-way.) My CSS: #navigation { float:right; padding-top:60px; text-transform:uppercase; font-weight:bold; height:30px; } #navigation ul { list-style-type:none; padding:0px; margin:0px; height:30px; } #navigation ul li { display:inline; background:url(images/nav_ctr.gif) top left repeat-x; padding-top:7px; padding-bottom:7px; } #navigation ul li a { color:#333333; background:url(images/nav_right.gif) top right no-repeat; text-decoration:none; padding:7px 10px 7px 0px; } #navigation ul li a span { background:url(images/nav_left.gif) bottom left no-repeat; padding-top:7px; padding-bottom:7px; padding-left:10px; height:30px; width:6px; } The HTML: <div id="navigation"> <ul> <li><a href="index.html"><span>Link #1</span></a></li> <li><a href="index.html"><span>Link #2</span></a></li> <li><a href="index.html"><span>Link #3</span></a></li> <li><a href="index.html"><span>Link #4</span></a></li> <li><a href="index.html"><span>Link #5</span></a></li> </ul> </div> Please help me out if you have the time and might know what's wrong, oh and I know a lot of my CSS is unnecessary code, a lot was added in to try fix it... Thanks, Greeny
June 17, 201016 yr Author Have you got a link or can you post the images your using I can't attach the files, getting: Error This upload failed Here they are: http://img375.imageshack.us/gal.php?g=navctr.gif Thanks, Greeny
June 17, 201016 yr I created a a website using this technique a while back. If you pm me I'll send you a linky and you can take a look at the code on the site. I presume you have firebug? Beg your pardon - just looked at your images. I used fixed images. Maybe this is what you need? http://www.alistapart.com/articles/slidingdoors/
June 17, 201016 yr Author I created a a website using this technique a while back. If you pm me I'll send you a linky and you can take a look at the code on the site. I presume you have firebug? Beg your pardon - just looked at your images. I used fixed images. Maybe this is what you need? http://www.alistapart.com/articles/slidingdoors/ Thank you for your reply, I will certainly use that technique if nobody finds a solution to my current code, I tried a similar technique myself but couldn't get it working which is when I split the image into three separate images. After spending two hours trying to fix my current code it would bug me to just use somebody else's. xD Thanks again, Greeny EDIT: Well, I do need to get on with this code so I gritted my teeth and used the better method kindly linked by Guezala.
Create an account or sign in to comment