HI there, I am having some issues with position fixed. I am trying to replicate this layout http://www.csszengarden.com/?cssfile=/213/213.css&page=0
This is what I came up so far antobbo.webspace.virginmedia.com/test/test.htm. All good, but I had an issue and I can't figure out what it was causing it. At the moment the fixed image is in a div on its own:
<!DOCTYPE html>
<html>
<head>
<title>This is a test</title>
<link rel = "stylesheet" type = "text/css" href = "style.css">
</head>
<body>
</div>
<div id ="image_fixed">
<img src = "bottom.png" alt = "">
</div>
<div id = "main_box">
<div id = "para"><p>
css Zen Garden
...
and here's the css for the fixed div:
#image_fixed
{
//background-image:url('bottom.png');
height:200px;
position:fixed;
bottom:0px;
}
So the issue is that if I add the image in the html everything works, but if I insert the image in the css as above - I commented it out - the image doesn't display. WHy is that? I can't come up with an explanation...
thanks