[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 05-18-2005, 09:51 PM   #1 (permalink)
New Member
 
Join Date: May 2005
Location: Austin, TX
Posts: 3
6.00 NP$ (Donate)

gromer is an unknown quantity at this point


CSS layout help needed!

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.
gromer is offline  
Old 05-18-2005, 10:14 PM   #2 (permalink)
NamePros Regular
 
Rowan W's Avatar
 
Join Date: Dec 2004
Location: QLD, Australia
Posts: 713
1,869.00 NP$ (Donate)

Rowan W will become famous soon enough


Quote:
Originally Posted by gromer
height: 100%; does not work.
Correct.

The only way to do this would be with frames.

However, you can try this: http://www.quirksmode.org/css/100percheight.html
Rowan W is offline  
Old 05-19-2005, 08:59 AM   #3 (permalink)
New Member
 
Join Date: May 2005
Location: Austin, TX
Posts: 3
6.00 NP$ (Donate)

gromer is an unknown quantity at this point


Quote:
Originally Posted by Rowan W
Correct.

The only way to do this would be with frames.

However, you can try this: http://www.quirksmode.org/css/100percheight.html
Thank you so much! I put height: 100%; in my body and it works great!
gromer is offline  
Old 05-19-2005, 03:28 PM   #4 (permalink)
New Member
 
Join Date: May 2005
Location: Austin, TX
Posts: 3
6.00 NP$ (Donate)

gromer is an unknown quantity at this point


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.
gromer is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
css position help needed cyberdread Programming 1 05-14-2005 05:52 PM
CSS Help Needed Chorei Web Design Discussion 0 04-12-2005 10:28 AM
CSS Layout Issue In I.E. (figures) XX7509 Web Design Discussion 3 03-25-2005 11:34 PM
CSS Layout Headache... agoni_dsp Web Design Discussion 1 03-22-2005 10:35 AM
Simple layout needed. Humdizzy Website Development 8 03-12-2005 05:53 AM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 05:08 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85