Log In · Register

 
Height in CSS as percentage?, Can I do it, or am I just attempting the imposible?
SJalways
post May 29 2009, 09:36 PM
Post #1


Unsharpened pencils are pointless
***

Group: Member
Posts: 47
Joined: Nov 2007
Member No: 588,647



All I want is to make the height of a div 70%. Can I? It seems like if I define the height of the body as 100%, it should work, and yet it doesn't.

Help?
 
 
Start new topic
Replies
fixtatik
post May 30 2009, 04:58 AM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



70% relative to the page length? you can define a div's height as a percentage, but it will only be a percentage of the viewable area of a browser. without javascript, you can't make it a percentage of the entire body's page.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: