Alright I've been playing around with this for awhile and I can't seem to figure it out. The page looks fine in IE8 but IE7 does not seem to want to drop the margin of the background image for me.
HTML
CSS
Any help would be appreciated. Thank you for your time.
HTML
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <script type="text/javascript" language="JavaScript" src="scripts/jquery.js"></script> <script type="text/javascript" language="JavaScript" src="scripts/jquery.cookie.js"></script> <script type="text/javascript" language="JavaScript" src="scripts/ddmenu.js"></script> <script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"></script> <link rel="stylesheet" type="text/css" href="style.css"/> <title>My page</title> </head> <body> <div id='site_container'> <div id='header_container'> <div id='logo_container'> <a href='#'><img alt='320 East Logo' src='images/logo.png'/></a> </div> <div id='menu_container'> <div style='margin-left: 50px; height: 74px; text-align: center;'> <a href='#'><img class='menu_item' alt='Home' src='images/home_link.png'/></a> <a href='#'><img class='menu_item' alt='About Us' src='images/about_link.png'/></a> <a href='#'><img class='menu_item' alt='Estimate' src='images/estimate_link.png'/></a> <a href='#'><img class='menu_item' alt='Contact Us' src='images/contact_link.png'/></a> </div> </div> <div class='clearit'> </div> </div> </div> </body> </html>
Code:
html
{
margin-top: 30px;
font: Arial;
}
body
{
background-repeat: repeat-x; background-image: url("images/headerbackg.jpg"); margin: 0px auto; width: 100%;
}
a
{
border-style: none;
}
a img
{
border-style: none;
}
#site_container
{
margin-top: -30px; width: 960px; margin-left: auto; margin-right: auto;
}
#logo_container
{
float: left;
width: 267px;
}
#menu_container
{
width: 693px;
margin-top: 30px;
float: right;
height: 74px;
}
.menu_item:hover
{
background-color: #67a2c7;
}
Comment