...

View Full Version : Css Crazyness! Itr should work



jjmancini
06-03-2005, 07:37 AM
Ok... I am creating a site and I cannot get the height of the css to be 100% in mozilla firefox. I know there is a fix where they reccommend doing:
html, body {
height: 100%
}

But that does not fix it, it is whenever I scroll that I have the problem. Here, check it out in Mozilla.

www.dukecityfueling.com

Thanks!

J.J.
Frunder Studios

jjmancini
06-03-2005, 08:58 PM
Any ideas?
:confused:

Tricia
06-03-2005, 09:36 PM
Im not understanding what you mean by the "height of the CSS" but you are missing a ";" after the 100%-- so it would be



body {
height: 100%;
}


also, not sure why you had html in there so i took it out.

When I look at your site in ff, i see a top section with a graphic and a white background and a main section in red. What do you want it to look like?

_Aerospace_Eng_
06-03-2005, 10:29 PM
The html he had in there is needed to get the div to go 100% height in FF. You might want to put your content in a container and give that gray background color to the container so the content should fill up the container making it "look" like it goes the height of the page.

Tricia
06-03-2005, 10:34 PM
ah ok, my mistake :)

mark87
06-03-2005, 10:48 PM
Tricia you don't need a semi-colon if it's the last property in the... meh can't word what I'm trying to say! ...

body {
width: 100%
}

is fine - but...

body {
width: 100%
height: 100%
}


...isn't.

Tricia
06-03-2005, 10:57 PM
well ya learn something new everyday dont'cha ;)

Thanks! :thumbsup:

It would be a best practice though to always use the ";" wouldnt it?

mark87
06-03-2005, 11:01 PM
I guess so, easier to insert new lines then without accidently leaving out the ; on the line above. :P



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum