- Impact
- 2
Left Menu Not Working in IE (Im a noob(
I am just getting into designing websites and I have a problem with understanding how something works in FF but not IE. I am looking to see if anyone here has a working answer for me to get it to work in IE also.
I am trying to create a left side menu for a template and have a little divider between the buttons. The buttons have a blue background color and the divider is an image 2px high by 1px wide which repeats on x.
The website preview is at http://www.breakpointdesigns.com/nathan
It works in Firefox, but not IE.
Here is the code I am using.
I am just getting into designing websites and I have a problem with understanding how something works in FF but not IE. I am looking to see if anyone here has a working answer for me to get it to work in IE also.
I am trying to create a left side menu for a template and have a little divider between the buttons. The buttons have a blue background color and the divider is an image 2px high by 1px wide which repeats on x.
The website preview is at http://www.breakpointdesigns.com/nathan
It works in Firefox, but not IE.
Here is the code I am using.
Code:
<html>
<head>
<style type="text/css">
body
{
text-align: center;
background-image : url("images/background.jpg");
background-repeat : repeat;
font-size:12px;
}
#center
{
width:671px;
margin:0px auto;
text-align:left;
}
#width
{
width:671px;
}
#header
{
width:671px;
height:96px;
background-color:#ffffff;
}
#top_gradient
{
width:611px;
float:left;
height:18px;
background-image:url("images/topgradient.gif");
background-repeat:repeat-x;
}
#divider
{
width:2px;
float:left;
height:18px;
background-image:url("images/divider.gif");
background-repeat:repeat-x;
}
#login_button
{
width:58px;
float:right;
height:18px;
background-image:url("images/topgradient.gif");
background-repeat:repeat-x;
line-height:18px;
text-align: center;
}
#banner
{
width:671px;
float:left;
height:56px;
background-image:url("images/banner.gif");
background-repeat:repeat-x;
margin-top:2px;
margin-bottom:2px;
}
a.white:link {color: #ffffff; text-decoration: none; }
a.white:visited {color: #ffffff; text-decoration: none; }
a.white:hover {color: #ffffff; text-decoration: underline; }
a.white:active {color: #ffffff; }
#bottom_gradient
{
width:190px;
float:left;
height:18px;
background-image:url("images/bottomgradient.gif");
background-repeat:repeat-x;
}
.divider2
{
width:2px;
float:left;
height:18px;
background-image:url("images/divider2.gif");
background-repeat:repeat-x;
}
.bottom_gradient2
{
width:70px;
float:left;
height:18px;
background-image:url("images/bottomgradient.gif");
background-repeat:repeat-x;
line-height:18px;
text-align: center;
}
#bottom_gradient3
{
width:191px;
float:left;
height:18px;
background-image:url("images/bottomgradient.gif");
background-repeat:repeat-x;
}
#main
{
width:671px;
float:left;
height:100%;
background-color:#ffffff;
}
#leftmenu
{
width:130px;
float:left;
height:100%;
margin-top:10px;
margin-bottom:10px;
}
#navigation
{
width:130px;
float:left;
height:18px;
background-image:url("images/topgradient.gif");
background-repeat:repeat-x;
margin-bottom:1px;
}
.button
{
width:130px;
float:left;
height:18px;
background-color:#03237D;
}
.menudivider
{
width:130px;
float:left;
height:2px;
background-image:url("images/menudivider.gif");
background-repeat:repeat-x;
}
</style>
</head>
<body>
<div id="center"> <!-- Centers FireFox --!>
<div id="width">
<div id="header">
<div id="top_gradient">
</div>
<div id="divider">
</div>
<div id="login_button"><a class="white" href="#">Login</a>
</div>
<div id="banner">
</div>
<div id="bottom_gradient">
</div>
<div class="divider2">
</div>
<div class="bottom_gradient2"><a class="white" href="#">Home</a>
</div>
<div class="divider2">
</div>
<div class="bottom_gradient2"><a class="white" href="#">About</a>
</div>
<div class="divider2">
</div>
<div class="bottom_gradient2"><a class="white" href="#">Portfolio</a>
</div>
<div class="divider2">
</div>
<div class="bottom_gradient2"><a class="white" href="#">Contact</a>
</div>
<div class="divider2">
</div>
<div id="bottom_gradient3">
</div>
</div>
<div id="main">
<div id="leftmenu">
<div id="navigation">
</div>
<div class="button">
</div>
<div class="menudivider">
</div>
<div class="button">
</div>
<div class="menudivider">
</div>
<div class="button">
</div>
<div class="menudivider">
</div>
</div>
</div>
</div>
</div>
</body>
</html>






