If I use the code quoted below, I get a clean interface in IE 6. The header is the right size and the tabnav buttons are attached to the header/title bar. In an Mozilla type browser the layout goes to the birds.
In IE6 if I have a container DIV with a width set, any other content inside of that div (text, other divs) seem to affect the size. What I mean is that a border around a container object will expand around the items between the containers div tags. In mozilla types it seems that the container minimally affects the layout and doesnt take what is between the tags as content that will affect its size.
How do I make something that works reliably between both browser types?
-wbochar
------------------------------------------------------
HTML
------------------------------------------------------
<html>
<head><title>::Futurstate::</title>
<LINK REL=STYLESHEET TYPE="text/css" HREF="futurstate.css">
</head>
<body>
<CENTER>
<div id="Pagebox">
<div id="titlebar">Header Bar</div>
<div id="tabnav">
<ul>
<li><a href="#">Button 1</a></li>
<li><a href="#">Button 2</a></li>
<li><a href="#">Button 3</a></li>
<li><a href="#">Button 4</a></li>
</ul>
</div>
</div>
</body>
</html>
--------------------------------------------
CSS
--------------------------------------------
body
{
color: #000000;
font-family: Arial;
font-size: 10px;
scrollbar-face-color: #ffffff;
scrollbar-shadow-color: #666666;
scrollbar-highlight-color: #ffffff;
scrollbar-3dlight-color: #666666;
scrollbar-darkshadow-color: #ffffff;
scrollbar-track-color: #ffffff;
scrollbar-arrow-color: #666666;
background: #ffffff;
}
#PageBox
{
width: 600;
}
#titlebar
{
font-family: trebuchet ms;
background: #ffffff;
font-variant: small-caps;
width: 100%;
color: #666666;
font-size: 32px;
background-image: url(pcb-title1.jpg);
background-repeat: no-repeat;
border: 1px solid;
border-color: #666666;
padding-right: 20px;
text-align: right;
letter-spacing: 10px;
valign-font: middle;
}
#tabnav
{
width: 100%;
}
#tabnav ul
{
float: right;
height: 30;
}
#tabnav li
{
padding: 0px;
display: inline;
list-style-type: none;
}
#tabnav a:link, #tabnav a:visited
{
background: #666666;
font-size: 10px;
line-height: 14px;
font-weight: bold;
padding: 2px 10px 2px 10px;
margin: 0px;
border: 1px solid #666666;
text-decoration: none;
color: #ffffff;
}
#tabnav a:link.active, #tabnav a:visited.active
{
background: #fff;
color: #666666;
}
#tabnav a:hover
{
background: #fff;
color: #666666;
}
In IE6 if I have a container DIV with a width set, any other content inside of that div (text, other divs) seem to affect the size. What I mean is that a border around a container object will expand around the items between the containers div tags. In mozilla types it seems that the container minimally affects the layout and doesnt take what is between the tags as content that will affect its size.
How do I make something that works reliably between both browser types?
-wbochar
------------------------------------------------------
HTML
------------------------------------------------------
<html>
<head><title>::Futurstate::</title>
<LINK REL=STYLESHEET TYPE="text/css" HREF="futurstate.css">
</head>
<body>
<CENTER>
<div id="Pagebox">
<div id="titlebar">Header Bar</div>
<div id="tabnav">
<ul>
<li><a href="#">Button 1</a></li>
<li><a href="#">Button 2</a></li>
<li><a href="#">Button 3</a></li>
<li><a href="#">Button 4</a></li>
</ul>
</div>
</div>
</body>
</html>
--------------------------------------------
CSS
--------------------------------------------
body
{
color: #000000;
font-family: Arial;
font-size: 10px;
scrollbar-face-color: #ffffff;
scrollbar-shadow-color: #666666;
scrollbar-highlight-color: #ffffff;
scrollbar-3dlight-color: #666666;
scrollbar-darkshadow-color: #ffffff;
scrollbar-track-color: #ffffff;
scrollbar-arrow-color: #666666;
background: #ffffff;
}
#PageBox
{
width: 600;
}
#titlebar
{
font-family: trebuchet ms;
background: #ffffff;
font-variant: small-caps;
width: 100%;
color: #666666;
font-size: 32px;
background-image: url(pcb-title1.jpg);
background-repeat: no-repeat;
border: 1px solid;
border-color: #666666;
padding-right: 20px;
text-align: right;
letter-spacing: 10px;
valign-font: middle;
}
#tabnav
{
width: 100%;
}
#tabnav ul
{
float: right;
height: 30;
}
#tabnav li
{
padding: 0px;
display: inline;
list-style-type: none;
}
#tabnav a:link, #tabnav a:visited
{
background: #666666;
font-size: 10px;
line-height: 14px;
font-weight: bold;
padding: 2px 10px 2px 10px;
margin: 0px;
border: 1px solid #666666;
text-decoration: none;
color: #ffffff;
}
#tabnav a:link.active, #tabnav a:visited.active
{
background: #fff;
color: #666666;
}
#tabnav a:hover
{
background: #fff;
color: #666666;
}