471,599 Members | 1,038 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,599 software developers and data experts.

container div filling the page vertically

just a feeling
Peace,

I want the container div to fill the page vertically ( but leave a margin at the bottom with 30px).

This is my css

[HTML]body {
margin: 0px;
padding: 0px;
}

#container {
background-color: #EAEAEA;
margin: 30px auto;
width: 780px;
}[/HTML]

Anyone can help,
Thanks in advance.
Oct 24 '07 #1
2 2332
numberwhun
3,503 Expert Mod 2GB
Peace,

I want the container div to fill the page vertically ( but leave a margin at the bottom with 30px).

This is my css

[HTML]body {
margin: 0px;
padding: 0px;
}

#container {
background-color: #EAEAEA;
margin: 30px auto;
width: 780px;
}[/HTML]

Anyone can help,
Thanks in advance.
Have you tried setting the margin to be:

Expand|Select|Wrap|Line Numbers
  1. margin:  30px 0 0 0;
  2.  
and see if that does it? There are 4 parameters to margin:

Expand|Select|Wrap|Line Numbers
  1. margin: {top} {right} {bottom} {left};
  2.  
Hopefully that will do it.

Regards,

Jeff
Oct 24 '07 #2
Thanks jeff, but not that what I want.

My margins are working correctlly, all what I need is forcing the container div to fill the enire page vertically but leave a space for top and bottom margin around 30px.
something like this,
http://www.oswd.org/design/preview/id/3559

I've tried setting the height for body and div container to 100%, but it filled all the page without leaving a space at the bottom ( though the top margin is ok ).
Oct 24 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Unknown User | last post: by
9 posts views Thread by Veerle | last post: by
reply views Thread by --== Alain ==-- | last post: by
18 posts views Thread by Hunk | last post: by
1 post views Thread by Miked | last post: by
16 posts views Thread by Charles A. Landemaine | last post: by
7 posts views Thread by Leslie Sanford | last post: by
80 posts views Thread by Boltar | last post: by
13 posts views Thread by LC's No-Spam Newsreading account | last post: by
2 posts views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.