Forum Moderators: not2easy
This works fine in IE. But for some reason Firefox and Opera dont show my div with the id of addr.
What could be causing this. Thanks
body {
margin:10px 0px; padding:0px;
text-align:center;
overflow:hidden;
scrollbar-face-color: #0000ff;
scrollbar-shadow-color: #00064F;
scrollbar-highlight-color: #00077E;
scrollbar-3dlight-color: #3300CC;
scrollbar-darkshadow-color: #000000;
scrollbar-track-color: #0000ff;
scrollbar-arrow-color: #fde600;
}
#Header {
width:800px;
margin:0px auto;
text-align:left;
}
#Content
{
margin:0px auto;
padding-bottom:10px;
}
#Footer
{
width:800px;
margin:0px auto;
}
#nav
{
position:relative;
top:-490;
left:-280;
margin-bottom:10;
z-index:1;
}
#addr
{
height:300;
width:161;
position:relative;
bottom:490;
left:-280 ;
font-size:10;
font-family:Arial;
color:#ffffff;
margin-bottom:10;
z-index:2
}
It may have something to do with the css body tag. I am using a text align = center to set the content image centralized. And IE may be applying this to anything ontop of the content div.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<LINK rel="stylesheet" type="text/css" href="http://localhost/bikebrothers/StyleSheet3.css">
</head>
<body>
<form runat="server" ID="Form1">
<div id="header"><img src="imgs/testheader.gif"></div>
<div id="content"><img src="imgs/contentl.gif"></div>
<div id="footer"><img src="imgs/testfooter.gif"></div>
<div id="nav">
<asp:DropDownList ID="ddl" CssClass="textbox" Runat="server">
<asp:ListItem Selected=False>Please Select</asp:ListItem>
<asp:ListItem Value='0'>Home</asp:ListItem>
<asp:ListItem Value='1'>Bikes</asp:ListItem>
<asp:ListItem Value='2'>Accessories</asp:ListItem>
<asp:ListItem Value='3'>Contact</asp:ListItem>
</asp:DropDownList></div>
<div id="addr">
Bike Brothers Limited<br>
2 Loddon Mall<br>
Basingstoke<br>
Hants, RG21 7HY<p>
Tel: 01256 841 001<br>
Fax: 01256 841
919</p>
</div>
</form>
</body>
</html>
Thanks.