View Single Post
Old Mar 5th, 2008, 10:28 AM   #15
privateD.lister
multigamer
 
Join Date: Mar 2008
Location: thelandofnoddy who has an addictio to vista, why has he becom sucha warped creature asthus?<("<)kirb
Posts: 13
Rep Power: 0 privateD.lister is on a distinguished road
Re: XHTML/CSS Div formatting problem

just adapt this little beuty to your needs,


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Background to fit screen</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Imagetoolbar" content="no">

<style type="text/css">
/* pushes the page to the full capacity of the viewing area */
html {height:100%;}
body {height:100%; margin:0; padding:0;}
/* prepares the background image to full capacity of the viewing area */
#bg {position:fixed; top:0; left:0; width:100%; height:100%;}
/* places the content ontop of the background image */
#content {position:relative; z-index:1;}
</style>
<!--[if IE 6]>
<style type="text/css">
/* some css fixes for IE browsers */
html {overflow-y:hidden;}
body {overflow-y:auto;}
#bg {position:absolute; z-index:-1;}
#content {position:static;}
</style>
<![endif]-->
</head>

<body>
<div id="bg"><img src="yourimage.jpg" width="100%" height="100%" alt=""></div>
<div id="content"><p>Enter a ton of text or whatever here.</p></div>
</body>
</html>


















thats how i do it an, MAN, it looks guuuwd. (<----by the way its from htmlite---->) <("<)kirby
__________________
why does everyone say think outside the box? I like the box, the box is my friend!!! [and yes i am insane]
roses are #ff0000; violets are #0000ff; all my base are belong to you
why d0 p30p13 d0 th15????
privateD.lister is offline   Reply With Quote