Old 07-02-2007, 17:57   #1 (permalink)
lunchbox170
Project Designs.org
 
Join Date: Nov 2006
Posts: 190
Height 100%???

How can I make an element the height of the entire page?
  Reply With Quote
Old 07-02-2007, 18:20   #2 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
This can usually be accomplished with an image background repeated all the way down the page.. giving the appearance of the element taking up the whole page. Otherwise you have to use a bit of javascript to get the browser's height dimension and update the style.height of the element with that variable.
  Reply With Quote
Old 08-02-2007, 02:36   #3 (permalink)
hawken
Cornish Pasty
 
hawken's Avatar
 
Join Date: Nov 2003
Location: Tokyo, Japan
Posts: 2,707
Send a message via MSN to hawken
it's been depreciated.
__________________
  Reply With Quote
Old 08-02-2007, 05:53   #4 (permalink)
mgpwr
with a hint of lemon
 
mgpwr's Avatar
 
Join Date: Aug 2006
Location: Sheffield
Posts: 489
You will need to make sure your body margin is set to 0px

body {
Margin: 0px;
}

I think lol!
__________________
Online portfolio: mgpwr.co.uk
  Reply With Quote
Old 08-02-2007, 11:45   #5 (permalink)
digitaloctane
Registered User
 
digitaloctane's Avatar
 
Join Date: Feb 2007
Location: Rhode Island
Posts: 24
body,html{
background: #FFF url(/img/background.jpg);
margin:0;
padding:0;
}

With this in your CSS, and a background image thats lets say 10px wide and 1200px tall would give you the desired effect. Let me know if that helps.
  Reply With Quote
Reply



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

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8