Log in

View Full Version : Page height



patmcc76
03-09-2010, 09:36 PM
Can anyone tell me why I can't get the background (white) to cover the whole page. It's the background for .container2 which should envelope the rest of the content but it doesn't seem to.

www.allendesign.ie/css/fit.html

Many thanks.

stringcugu
03-09-2010, 09:57 PM
forgot the height:368px;in the .main

.main { width:980px; height:368px;padding:0; margin:0 auto; background:green;}
.container {width:980px; height:900px; margin:0 auto; background:yellow}
.container2 {width:980px; height:auto; margin:0 auto; background:#fff}

patmcc76
03-09-2010, 10:19 PM
Hmmm - just tried that (link now updated with above change). Still the same though.

stringcugu
03-10-2010, 01:05 AM
change the color the quickest way
TO b6b6b6
.main {width:980px; height:568px; padding:0; margin:0 auto; background:#b6b6b6;}

i did not use the link
< link href="http://www.allendesign.ie/css/style.css" rel="stylesheet" type="text/css" />
i put it in
<style>
</style>
in the page

try it then you will find out

stringcugu
03-10-2010, 01:43 AM
try take this line out
if the last post don't work---------
i have tryed it with the link
//.FBG { height:85px; padding:10px 0; margin:0 auto; background:url(http://www.allendesign.ie/css/images/shadow.gif) top center repeat-x;}

<div class="FBG">
</div>

patmcc76
03-10-2010, 07:53 AM
That didn't do it either. I'm just wondering why the body background #b6b6b6 is taking over the whole page when I've set background colors (test colors at the moment) for the container2 and main divs.

It seems to work in IE but not in firefox.

Suggestions???

stringcugu
03-10-2010, 09:01 AM
if you what the this words to go under the white where the ---shadow.gif is
to move it down
put <BR> 3 times it will move down the <DIV class="body_resize
Considered to be our core activity, we pride ourselves on providing


<BR><BR><BR>
<div class="body_resize">
<div class="left">
<div class="page2left">
<div class="box1">
<h2>.......Considered to be our core activity, we pride ourselves on providing clients with the <strong>full package to fit out to suit the business needs and budget.</strong> <br />
</h2>

BLiZZaRD
03-11-2010, 01:55 AM
Erm.. fix your errors.... see them here (http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.allendesign.ie%2Fcss%2Fstyle.css&profile=css21&usermedium=all&warning=1&lang=en)

There are HTML errors too, but that wont effect your layout.