Im working on a project but im having some issues with the positioning and visibility of my divs
If you click the following link you will see my error:
http://www.on-media.co.uk/clients/css/index.html
The instant error is the DIV has the highlight color, when the page loads, secondly in IE the div attaches itself to the bottom of the page and scrolls with it, but in FF it looks fine.
Here is the Screenshot in FireFox: http://www.on-media.co.uk/clients/css/firefox.jpg
Here is the Screenshot in IE: http://www.on-media.co.uk/clients/css/ie.jpg
This is what im trying to achieve: http://www.on-media.co.uk/clients/css/achieve.jpg
Here is the code im using in my style sheet.
CODE
.on-media #product_container{
width:660px;
height:369px;/* just add +369px to this figure to increase the row by one */
margin:0 auto;
}
.on-media #p1_Container{
width:221px;
height:371px;
float:left;
}
.on-media #p1{
width:219px;
height:369px;
float:left;
border:dotted 1px #AF9F9C;
position:fixed;
z-index:0;
}
.on-media #p1_image{
width:219px;
height:227px;
text-align:center;
padding:0;
position:relative;
z-index:0;
}
.on-media #p1_top{
width:219px;
height:84px;
text-align:center;
padding:0;
font-family:Tahoma, Geneva, sans-serif;
font-size:16px;
color:#2A1E1A;
position:relative;
z-index:2;
}
.on-media #p1_bottom{
width:219px;
height:27px;
text-align:center;
font-family:Tahoma, Geneva, sans-serif;
font-size:16px;
color:#2A1E1A;
line-height:27px;
position:relative;
z-index:2;
}
.on-media #p1_bottom2{
width:219px;
height:15px;
text-align:center;
font-family:Tahoma, Geneva, sans-serif;
font-size:11px;
color:#2A1E1A;
position:relative;
z-index:2;
}
.on-media #p1_c{
width:219px;
height:369px;
float:left;
background:#D9D5CA;
border:solid #A7977D 1px;
position:absolute;
z-index:1;
filter:alpha(opacity=60);
opacity:0.6;
visibility: inherit;
}
.on-media #p1_overlay{
width:219px;
height:227px;
text-align:center;
position:inherit;
z-index:2;
}
width:660px;
height:369px;/* just add +369px to this figure to increase the row by one */
margin:0 auto;
}
.on-media #p1_Container{
width:221px;
height:371px;
float:left;
}
.on-media #p1{
width:219px;
height:369px;
float:left;
border:dotted 1px #AF9F9C;
position:fixed;
z-index:0;
}
.on-media #p1_image{
width:219px;
height:227px;
text-align:center;
padding:0;
position:relative;
z-index:0;
}
.on-media #p1_top{
width:219px;
height:84px;
text-align:center;
padding:0;
font-family:Tahoma, Geneva, sans-serif;
font-size:16px;
color:#2A1E1A;
position:relative;
z-index:2;
}
.on-media #p1_bottom{
width:219px;
height:27px;
text-align:center;
font-family:Tahoma, Geneva, sans-serif;
font-size:16px;
color:#2A1E1A;
line-height:27px;
position:relative;
z-index:2;
}
.on-media #p1_bottom2{
width:219px;
height:15px;
text-align:center;
font-family:Tahoma, Geneva, sans-serif;
font-size:11px;
color:#2A1E1A;
position:relative;
z-index:2;
}
.on-media #p1_c{
width:219px;
height:369px;
float:left;
background:#D9D5CA;
border:solid #A7977D 1px;
position:absolute;
z-index:1;
filter:alpha(opacity=60);
opacity:0.6;
visibility: inherit;
}
.on-media #p1_overlay{
width:219px;
height:227px;
text-align:center;
position:inherit;
z-index:2;
}
And this is my code on my DIVs
CODE
<div id="p1_Container">
<div id="p1" onmouseover="setVisibility('p1_c','inline')" onmouseout="setVisibility('p1_c','none')">
<div id="p1_c" onmouseover="setVisibility('p1_c','inline')" onmouseout="setVisibility('p1_c','none')"></div>
<div id="p1_top"><img src="images/products/healthy_peels_logo.png" width="208" height="61" /><br />
Cocoa Beans</div>
<div id="p1_image"><img src="images/products/healthypeels.jpg" width="208" height="227" /></div>
<div id="p1_bottom">8oz Bags</div>
<div id="p1_bottom2">from as little as $9.99</div>
</div></div>
<div id="p1" onmouseover="setVisibility('p1_c','inline')" onmouseout="setVisibility('p1_c','none')">
<div id="p1_c" onmouseover="setVisibility('p1_c','inline')" onmouseout="setVisibility('p1_c','none')"></div>
<div id="p1_top"><img src="images/products/healthy_peels_logo.png" width="208" height="61" /><br />
Cocoa Beans</div>
<div id="p1_image"><img src="images/products/healthypeels.jpg" width="208" height="227" /></div>
<div id="p1_bottom">8oz Bags</div>
<div id="p1_bottom2">from as little as $9.99</div>
</div></div>
I appreciate any help you can provide me
