Posted by Bill on 11/25/65 11:47
I just started learning about div tags today.
The following works as I'd expect it to in IE, but in FF the
background isn't displayed in the "header". If I remove
"position:absolute;" from div#header, then the background is displayed
in FF.
-----------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD>
<STYLE TYPE="text/css">
body{
background:#282528;
margin:0;
padding:0;
}
div#wrapper{
background:url('textbg.jpg') repeat-y;
position:relative;
margin:0 auto;
width:900px;
height:auto;
}
div#header{
position:absolute;
height:156px;
width:900px;
border:1px solid #80FFFF;
}
</STYLE>
</HEAD>
<BODY>
<div id="wrapper">
<div id="header">
</div>
</div>
</BODY>
</HTML>
------------------
So what's going on here?
Navigation:
[Reply to this message]
|