Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

CSS layout help needed!

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

gromer

New Member
Impact
0
Check out my test page:

http://www.gr0m3r.com/unique/layout01.html

My main goal is to have the black borders on the left and right to go 100% verticaly. My code:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Test Layout</title>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
background: #808080;
}
#content {
position: relative;
display: block;
width: 800px;
height: 100%;
margin: 0px auto;
border-left: 5px solid #000000;
border-right: 5px solid #000000;
background-image: url(images/white.jpg);
background-repeat: repeat;
}
p { margin: 0; }

img.server_top
{
	right: 0px;
	top: 0px;
	position: absolute;
}

img.server_bottom
{
	right: 600px;
	top: 80px;
	position: absolute;
}

</style>
</head>
<body>
<div id="content">
	<img class="server_top" src="images/server01.jpg" alt="Server" />
<p>you can put anything you want in this box</p>
<div id="box">&nbsp</div>
</div>
</body>
</html>

height: 100%; does not work. This is driving me nuts!!! Please help me.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
Close
0
Close
Hmmm, looks like height: 100%; in html and body does not fix the problem if I put in too much content to where it scrolls vertically.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back