Jump to content


Div Height


4 replies to this topic

#1 BradyValentino

    Jedi In Training

  • Members
  • PipPip
  • 360 posts
  • Gender:Male
  • Location:Vancouver
  • Interests:Web design and development. Photography. Astronomy.

Posted 03 April 2007 - 10:24 PM

Theres something I can't figure out... How do you get a div to span the entire page in height?

#2 Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 716 posts
  • Gender:Male
  • Location:Texas

Posted 03 April 2007 - 10:34 PM

<style type="text/css">
<!--
body, html {
	margin: 0;
	padding: 0;
	height: 100%;
}
#wrapper {
	background-color: #000;
	width: 100%;
	height: 100%;
}
-->
</style>
<body>
<div id="wrapper"> </div>
</body>
Posted Image

#3 BradyValentino

    Jedi In Training

  • Members
  • PipPip
  • 360 posts
  • Gender:Male
  • Location:Vancouver
  • Interests:Web design and development. Photography. Astronomy.

Posted 03 April 2007 - 11:55 PM

[quote name='SpatialVisionary' post='210092' date='Apr 3 2007, 08:34 PM']
Would I change it to
?

#4 Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 716 posts
  • Gender:Male
  • Location:Texas

Posted 04 April 2007 - 07:58 AM

body, html {
	 margin: 0;
	 padding: 0;
	 height: 100%;
}
you can't forget about this, that's the key component.

#5 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 04 April 2007 - 05:23 PM

This is a frequently asked question. Please use the forum search or google.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users