100% height not working great

This is a discussion on "100% height not working great" within the Web Page Design section. This forum, and the thread "100% height not working great are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 30th, 2006, 07:25
Up'n'Coming Member
Join Date: Aug 2006
Location: California
Age: 20
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow 100% height not working great

I am using dreamweaver to help me write my CSS code, and I am making a div layout. Now I feel comfortable using divs, but something has prevented me from working.

I have a 100% height issue. My code goes as this...
Code: Select all
#main
{
height:100%;
width:600px;
}
Basically dreamweaver and IE are responding to this 100% deal as acutally 5pixles, because thats as tall as it wants to go. It looks like it works perfectly for most people, except for me. Can anyone help me?

(I dont have this code uploaded online. I dont think I really need to in this situation...)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 30th, 2006, 08:38
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 100% height not working great

What are you trying to do? Try adding this to your CSS:

Code: Select all
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
There are several solutions, but it all lies on what you're trying to do.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
height

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
great cms dab42pat PHP Forum 9 Apr 10th, 2008 14:46
How to make a table height equal to the browser height ? subhadip Starting Out 4 Sep 20th, 2007 07:56


All times are GMT. The time now is 03:33.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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