CSS Height Properties

This is a discussion on "CSS Height Properties" within the Web Page Design section. This forum, and the thread "CSS Height Properties are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 29th, 2007, 01:40
New Member
Join Date: Aug 2007
Location: NC
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
CSS Height Properties

My site is having a problem. When I check it in 800 x 600, or if I have to scroll down at all, my white background I use in my container div goes away and the background of the body, a blue color takes over. My code is

Code: Select all
html {
 height:100%;
}
body {
 height:100%;
 background-color:blue;
 text-align:center;
 margin:auto;
 width:750px;
 font-family:Arial, Helvetica, sans-serif;
}
#container {
 width:750px;
 height:100%;
 min-height:100%;
 background-color:#FFFFFF;
 text-align:left;
 margin-bottom:15px;
}
#header {
 width:750px;
}
#left {
 margin:0 0 15px 10px;
 float:left;
 text-align:justify;
 width:330px;
 font:small Arial, Helvetica, sans-serif;
}
#right {
 margin:0 10px 15px 0;
 float:right;
 text-align:justify;
 width:390px;
 font:small Arial, Helvetica, sans-serif;
}
#footer {
 clear:both;
 height: 30px;
 width:750px;
 font-weight:bold;
 font-size: x-small;
 margin-top:15px;
 margin-bottom:0px;
}

Last edited by defy; Oct 29th, 2007 at 01:54.
Reply With Quote

  #2 (permalink)  
Old Oct 29th, 2007, 04:02
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: CSS Height Properties

Hai defy... I don't think that you really need that code (red coded) in your css! Try remove them and see what happen.

Next time, maybe you could include your HTML file together so we can test your code without having to create our own HTML file to test your CSS
Cheers..

Code: Select all
body {
height:100%;
background-color:blue; /*you could write as background: blue; same result*/
text-align:center;
margin:auto;
width:750px;
font-family:Arial, Helvetica, sans-serif;
}
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)

Last edited by Monie; Oct 29th, 2007 at 07:12.
Reply With Quote
  #3 (permalink)  
Old Oct 29th, 2007, 13:23
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Height Properties

Actually ... next time, put a link so we can see what's going on without trying to guess.
Reply With Quote
Reply

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
How to make a table height equal to the browser height ? subhadip Starting Out 4 Sep 20th, 2007 07:56
Some properties are inherited begemot Web Page Design 3 May 19th, 2007 18:37
Capture Values/Properties Sabin_33 Web Page Design 4 Dec 6th, 2006 16:16
Xsd Xml Schema - Same Element With Different Properties myghty Other Programming Languages 0 Aug 6th, 2006 12:30
has no properties pmichael JavaScript Forum 3 Jan 9th, 2004 18:10


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


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43