
Originally Posted by
ItsMeOnly
the problem is trivial: the div is 100% of parent- that is document body, which of height is undefined...
Thanks for your reply.
I tried by adding this as well. Still doesn't work. Please Help me.
same testing page
http://www.yourfreespace.net/users/jigarshah/trial.html
Code:
body {
background:#8b8b8b;
color:#303030;
font:76% Verdana,Tahoma,Arial,sans-serif;
margin:0;
padding:0;
text-align:center;
height:100%;
}
Complete code is something like this
CSS
Code:
body {
background:#8b8b8b;
color:#303030;
font:76% Verdana,Tahoma,Arial,sans-serif;
margin:0;
padding:0;
text-align:center;
height:100%;
}
/*** Main container ***/
#container {
background:#f0f0f0 url(../images/images_blue/bodybg.jpg) repeat-x;
color:#303030;
margin:0;
padding:0;
text-align:left;
height:100%;
}
/*** Footer ***/
#footer {
background:#8b8b8b url(../images/footerbg.jpg) top left repeat-x;
clear:both;
color:#d0d0d0;
font-size:0.9em;
font-weight:bold;
margin:0;
padding:10px 0 10px;
text-align:center;
width:100%;
}
/*** End of file ***/
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Jigar's Homepage</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="css/test.css" />
<link rel="shortcut icon" href="images/favicon.png" type="image/x-icon" />
</head>
<body>
<div id="container">
Hi this is test
<div id="footer">
This is footer
</div>
</div>
</body>
</html>
Bookmarks