I'm trying to absolute position a background image inside a #div redcircle. The problem I'm having is when I position it at top: 0 left 0 it is pushing the background image in my #div top down about 30px; (In Firefox, IE7 displays correct) Here is my code, any help would be appreciated.
Thanks again for your time.
braves07
Code:
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
background-color:#333333;
margin: 0px;
padding: 0px;
}
#container {
width: 720px;
height: auto;
margin: 0px auto;
background-color: #FFFFFF;
color: #000000;
overflow: hidden;
position: relative;
}
#top {
width: 720px;
height: 185px;
background-image: url(images/black_bg1.gif);
background-repeat: repeat;
margin: 0px;
padding: 0px;
}
#redcircle {
position: absolute; top: 0px; left: 0px;
height: 185px;
width: 359px;
background-image: url(images/red_circle.png);
background-repeat: no-repeat;
margin: 0px;
padding: 0px;
}
h1 {
color: #FFFFFF;
text-align: right;
margin-right: 20px;
}
h2 {
color: #FFFFFF;
margin: 20px 5px 10px 5px;
font-size: 22px;
}
Code:
<body>
<div id="container">
<div id="top">
<h1>Company Name</h1>
</div>
<div id="redcircle">
<h2>Point 1</h2>
<h2>Point 2</h2>
<h2>Point 3</h2>
</div>
</div>
</body>
Thanks again for your time.
braves07