niemie
07-08-2005, 12:31 AM
This is driving me nuts, for the life of me I don't understand why the banner and the nav bar aren't lining up on the edges, and it appears to be different (how it is off) in IE and Firefox. Basically they should both be 750px in width but the edges of the nav bar and banner beneath it never line up. Thanks for any help....
<!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></title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body {
margin:0;
padding:0;
text-align: center; /* IE5/Win fix */
}
#wrapper {
width:750px;
height:100%;
margin:0 auto 0 auto;
text-align: left;
}
#top {
width:750px;
height:60px;
padding:5px 1px 0 3px;
}
#logohead {
width:370px;
height:60px;
position:absolute;
left:157px;
top:17px;
background-image:url(../images/ricochetlogo.gif);
background-repeat:no-repeat;
background-position:bottom left;
z-index:5000;
}
#toplinks {
height:60px;
width:365px;
margin-left:380px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
color:#666666;
}
#midbanner {
width:auto;
height:170px;
position:relative;
background: url(banner.gif) no-repeat;
}
#midblock {
width:auto;
height:45px;
position:relative;
background-color:#6292BB;
margin:1px 0 0 0;
}
#bottomcontent {
width:auto;
height:auto;
}
#leftnavbox {
}
#leftboxes {
width:185px;
height:auto;
padding:5px 5px 0 5px;
float:left;
/*border:1px solid gray;*/
}
.leftbox, .leftboxBottom {
height:80px;
width:98%;
border:1px solid #8D8D8D;
background-image:url(../images/leftboxstrip.gif);
background-repeat:no-repeat;
background-position:top;
color:#334C99;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
font-weight:bold;
padding-top:2px;
}
.leftbox{
margin-bottom:10px;
}
#rightboxes {
width:535px;
padding:5px 0 0 0;
margin-left:205px;
border:1px solid pink;
}
.rightbox1, .rightbox2, .rightbox3 {
height:176px;
width:165px;
border:1px solid blue;
background-image:url(../images/teststip.gif);
background-repeat:no-repeat;
background-position:top;
color:#ffffff;
font-weight:bold;
}
.rightbox1 {
float:left;
}
.rightbox2 {
margin-left:183px;
}
.rightbox3 {
float:right;
}
#bottombox {
height:80px;
width:535px;
margin-top:10px;
border:1px solid orange;
}
/* hide from IE/Mac \*/
* html #bottomcontent,* html #midbanner {
width:750.5px;
wid\th:750px;
}
/* end hide */
/****** BEGIN MENU ******/
#nav,#nav li,#nav li ul {
list-style-type: none;
margin: 0;
padding: 0;
}
#nav {
position: relative;
width:750px;
min-height: 3.1em;
height:auto;
margin:0;
font-size: .8em;
top: 0;
}
#nav li {
margin: 0 0 0 2px;
padding: 0;
width:100px;
float:right;
text-align:center;
font-weight: bold;
color:#444;
}
#nav a {
display:block;
color:#999999;
text-decoration:none;
background: url(inactive.gif) no-repeat;
background-image: url(inactive.gif);
background-repeat: no-repeat;
background-position: top left;
margin:0;
position: relative;
font-weight: bold;
font:Verdana, Arial, Helvetica, sans-serif;
font-size:13px;
top: 0;
line-height: 1.4em;
}
#nav a:hover {
color:#888888;
}
ul#nav li a.here {
background: url(active.gif) no-repeat;
z-index: 310;
position: relative;
margin-bottom: -1px;
color:#334C99;
}
ul#nav li a.here:hover {
color:#334C99;
}
ul#subnav {
width:750px;
min-height: 23px;
height: 1.7em;
background:url(subnav_background.gif) repeat-x;
border-top:1px solid #CECECE;
border-left:1px solid #CECECE;
border-right:1px solid #CECECE;
text-align:right;
padding:0 2px 0 0;
clear:both;
z-index:290;
position:absolute;
margin: 0;
right: 0;
top: 1.34em;
}
/* hide from IE/Mac \*/
* html #nav {
height: 3.1em;
wid\th:752px;
lef\t: 1px;
}
* html #nav a {
height: 1%;
}
* html ul#subnav {
wid\th:753px;
}
/* end hide */
#subnav li {
position:relative;
z-index:102;
display: block;
margin: 0;
padding: 0;
float:left;
line-height: 1.4em;
width:50px;
}
ul#subnav li a {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:9px;
margin-top:3px;
color:#666666;
background-image:url();
border-left:1px solid #cccccc;
}
/* end menu */
</style>
</head>
<body>
<div id="wrapper">
<div id="top">
<div id="logohead"> </div>
<div id="toplinks" align="right"><img src="images/arrows2.gif">Client Login</div>
</div>
<ul id="nav">
<li><a class="a3" href="#">Link1</a></li>
<li><a class="a2" href="#">Link2</a></li>
<li><a class="a1" href="#">Link3</a></li>
<li><a class="a0 here" href="#">Home</a>
<ul id="subnav"><li> </li></ul>
</li>
</ul>
<div id="midbanner"></div>
<div id="bottomcontent">
</div>
</div><!--end Wrapper-->
</body>
</html>
<!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></title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body {
margin:0;
padding:0;
text-align: center; /* IE5/Win fix */
}
#wrapper {
width:750px;
height:100%;
margin:0 auto 0 auto;
text-align: left;
}
#top {
width:750px;
height:60px;
padding:5px 1px 0 3px;
}
#logohead {
width:370px;
height:60px;
position:absolute;
left:157px;
top:17px;
background-image:url(../images/ricochetlogo.gif);
background-repeat:no-repeat;
background-position:bottom left;
z-index:5000;
}
#toplinks {
height:60px;
width:365px;
margin-left:380px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
color:#666666;
}
#midbanner {
width:auto;
height:170px;
position:relative;
background: url(banner.gif) no-repeat;
}
#midblock {
width:auto;
height:45px;
position:relative;
background-color:#6292BB;
margin:1px 0 0 0;
}
#bottomcontent {
width:auto;
height:auto;
}
#leftnavbox {
}
#leftboxes {
width:185px;
height:auto;
padding:5px 5px 0 5px;
float:left;
/*border:1px solid gray;*/
}
.leftbox, .leftboxBottom {
height:80px;
width:98%;
border:1px solid #8D8D8D;
background-image:url(../images/leftboxstrip.gif);
background-repeat:no-repeat;
background-position:top;
color:#334C99;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
font-weight:bold;
padding-top:2px;
}
.leftbox{
margin-bottom:10px;
}
#rightboxes {
width:535px;
padding:5px 0 0 0;
margin-left:205px;
border:1px solid pink;
}
.rightbox1, .rightbox2, .rightbox3 {
height:176px;
width:165px;
border:1px solid blue;
background-image:url(../images/teststip.gif);
background-repeat:no-repeat;
background-position:top;
color:#ffffff;
font-weight:bold;
}
.rightbox1 {
float:left;
}
.rightbox2 {
margin-left:183px;
}
.rightbox3 {
float:right;
}
#bottombox {
height:80px;
width:535px;
margin-top:10px;
border:1px solid orange;
}
/* hide from IE/Mac \*/
* html #bottomcontent,* html #midbanner {
width:750.5px;
wid\th:750px;
}
/* end hide */
/****** BEGIN MENU ******/
#nav,#nav li,#nav li ul {
list-style-type: none;
margin: 0;
padding: 0;
}
#nav {
position: relative;
width:750px;
min-height: 3.1em;
height:auto;
margin:0;
font-size: .8em;
top: 0;
}
#nav li {
margin: 0 0 0 2px;
padding: 0;
width:100px;
float:right;
text-align:center;
font-weight: bold;
color:#444;
}
#nav a {
display:block;
color:#999999;
text-decoration:none;
background: url(inactive.gif) no-repeat;
background-image: url(inactive.gif);
background-repeat: no-repeat;
background-position: top left;
margin:0;
position: relative;
font-weight: bold;
font:Verdana, Arial, Helvetica, sans-serif;
font-size:13px;
top: 0;
line-height: 1.4em;
}
#nav a:hover {
color:#888888;
}
ul#nav li a.here {
background: url(active.gif) no-repeat;
z-index: 310;
position: relative;
margin-bottom: -1px;
color:#334C99;
}
ul#nav li a.here:hover {
color:#334C99;
}
ul#subnav {
width:750px;
min-height: 23px;
height: 1.7em;
background:url(subnav_background.gif) repeat-x;
border-top:1px solid #CECECE;
border-left:1px solid #CECECE;
border-right:1px solid #CECECE;
text-align:right;
padding:0 2px 0 0;
clear:both;
z-index:290;
position:absolute;
margin: 0;
right: 0;
top: 1.34em;
}
/* hide from IE/Mac \*/
* html #nav {
height: 3.1em;
wid\th:752px;
lef\t: 1px;
}
* html #nav a {
height: 1%;
}
* html ul#subnav {
wid\th:753px;
}
/* end hide */
#subnav li {
position:relative;
z-index:102;
display: block;
margin: 0;
padding: 0;
float:left;
line-height: 1.4em;
width:50px;
}
ul#subnav li a {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:9px;
margin-top:3px;
color:#666666;
background-image:url();
border-left:1px solid #cccccc;
}
/* end menu */
</style>
</head>
<body>
<div id="wrapper">
<div id="top">
<div id="logohead"> </div>
<div id="toplinks" align="right"><img src="images/arrows2.gif">Client Login</div>
</div>
<ul id="nav">
<li><a class="a3" href="#">Link1</a></li>
<li><a class="a2" href="#">Link2</a></li>
<li><a class="a1" href="#">Link3</a></li>
<li><a class="a0 here" href="#">Home</a>
<ul id="subnav"><li> </li></ul>
</li>
</ul>
<div id="midbanner"></div>
<div id="bottomcontent">
</div>
</div><!--end Wrapper-->
</body>
</html>