You need to use floats - float the logo and the navbox left, then clear the float after the closing div for #header.
Like this:
Quote:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Digicon Media : Home</title>
<meta name="keywords" content="Digicon Media Group Web Design webdesign small business communication connect with customers">
<meta name="description" content="Digicon Media Group specializes in connecting small business with customers via a digital medium. ">
<link href="normal.css" rel="stylesheet" type="text/css">
<style type="text/css">
a:link {color:navy;text-decoration:none;}
a:visited {color:navy;text-decoration:none;}
a:hover {color:blue;text-decoration:underline;}
a:active {color:red;text-decoration:none;}
body {
margin:9px 9px 9px 9px;
padding:0px;
background:white;
}
#header{
background:navy;
width:775px;
/*height:auto;*/
margin: 0 auto;
}
#logobox{
background:white;
width:210px;
height:40px;
margin-left:10px;
text-align:center;
float: left;
}
#navbox{
background:blue;
width:500px;
height:40px;
float: left;
}
.brclear { /* Use a break with this class to clear float containers on both sides */
clear:both;
height:0;
margin:0;
font-size: 1px;
line-height: 0;
}
</style>
</head>
<body>
<div id="header">
<div id="logobox"><img alt="" src="http://www.webmaster-talk.com/images/smlogo.gif" width="219" height="30">
</div><!-- end logo -->
<div id="navbox">
</div><!-- end nav -->
<br class="brclear" />
</div><!-- end header -->
</body>
|
If you add any LEFT margin to either floated box, you'll trigger a bug in IE6 and below that you will have to fix.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|