niemie
05-24-2005, 02:05 AM
I've almost got a tab setup how I want it (although i am sure there is probably an easier method than what I did) but I have a couple of problems.
1, the subnav text is only right aligned in IE not Firefox.
2, the subnav bar has been given a 1px white top border, but this should be behind the "on" tab and in front of the "off" tabs. It doesn't behave correctly in IE regardless of the z indexes and it doesn't show up at all in Firefox.
Any help is greatly appreciated.
Here are the necessary image files:
http://yourthreshold.com/downloads/nav_background.gif
http://yourthreshold.com/downloads/..._background.gif (http://yourthreshold.com/downloads/subnav_background.gif)
http://yourthreshold.com/downloads/..._background.gif (http://yourthreshold.com/downloads/navHERE_background.gif)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
#wrapper {
width:750px;
height:100%;
margin:0 auto 0 auto;
text-align: left;
padding:10px 0 0 0;
}
#nav{
width:750px;
height:auto;
margin:0;
z-index:201;
}
#tabONEoff, #tabTWOoff, #tabTHREEoff, #tabFOURoff {
background:url(images/nav_background.gif) no-repeat;
width:100px;
height:17px;
float:right;
margin-right:2px;
text-align:center;
font-weight: bold;
font-size: .8em;
color:#444444;
z-index:201;
}
#tabONEon, #tabTWOon, #tabTHREEon, #tabFOURon {
background:url(images/navHERE_background.gif) no-repeat;
width:100px;
height:17px;
float:right;
margin-right:2px;
text-align:center;
font-weight: bold;
font-size: .8em;
color:#444444;
z-index:301;
}
#subnav {
width:750px;
height:23px;
background:url(images/subnav_background.gif) repeat-x;
border-top:1px solid #ffffff;
margin:-1px;
text-align:right;
padding:0 2px 0 0;
clear:both;
font-weight: bold;
font-size: .8em;
color:#444444;
z-index:290;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="nav">
<div id="tabONEoff">About</div>
<div id="tabTWOoff">Tools</div>
<div id="tabTHREEoff">Hosting</div>
<div id="tabONEon">Home</div>
</div>
<div id="subnav">Text</div>
</div>
</body>
</html>
1, the subnav text is only right aligned in IE not Firefox.
2, the subnav bar has been given a 1px white top border, but this should be behind the "on" tab and in front of the "off" tabs. It doesn't behave correctly in IE regardless of the z indexes and it doesn't show up at all in Firefox.
Any help is greatly appreciated.
Here are the necessary image files:
http://yourthreshold.com/downloads/nav_background.gif
http://yourthreshold.com/downloads/..._background.gif (http://yourthreshold.com/downloads/subnav_background.gif)
http://yourthreshold.com/downloads/..._background.gif (http://yourthreshold.com/downloads/navHERE_background.gif)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
#wrapper {
width:750px;
height:100%;
margin:0 auto 0 auto;
text-align: left;
padding:10px 0 0 0;
}
#nav{
width:750px;
height:auto;
margin:0;
z-index:201;
}
#tabONEoff, #tabTWOoff, #tabTHREEoff, #tabFOURoff {
background:url(images/nav_background.gif) no-repeat;
width:100px;
height:17px;
float:right;
margin-right:2px;
text-align:center;
font-weight: bold;
font-size: .8em;
color:#444444;
z-index:201;
}
#tabONEon, #tabTWOon, #tabTHREEon, #tabFOURon {
background:url(images/navHERE_background.gif) no-repeat;
width:100px;
height:17px;
float:right;
margin-right:2px;
text-align:center;
font-weight: bold;
font-size: .8em;
color:#444444;
z-index:301;
}
#subnav {
width:750px;
height:23px;
background:url(images/subnav_background.gif) repeat-x;
border-top:1px solid #ffffff;
margin:-1px;
text-align:right;
padding:0 2px 0 0;
clear:both;
font-weight: bold;
font-size: .8em;
color:#444444;
z-index:290;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="nav">
<div id="tabONEoff">About</div>
<div id="tabTWOoff">Tools</div>
<div id="tabTHREEoff">Hosting</div>
<div id="tabONEon">Home</div>
</div>
<div id="subnav">Text</div>
</div>
</body>
</html>