473,397 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 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 2394
numberwhun
3,509 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

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

Similar topics

10
by: Unknown User | last post by:
Yet another question about vertical centering: How can I center a page vertically? I have searched on Google and didn't find anything that works at least on IE, Opera and Mozilla:...
9
by: Veerle | last post by:
Hi, I would like to divide the whole of my html page in 4 equal rectangles using only div tags in my html. The result should look a bit like this site:...
0
by: --== Alain ==-- | last post by:
Hi, I have a control (let's called it : Container) which include several "Child" controls. 1. I would like to detect if a child control is out of the display rectangle of the container. If...
18
by: Hunk | last post by:
Would like some advice on the fillowing I have a sorted list of items on which i require to search and retrieve the said item and also modify an item based on its identity. I think an Map stl...
1
by: Miked | last post by:
Hello: I'm relatively new to CSS, and I'm doing a site where I don't want to use any tables. I've gotten pretty far, and the site has the layout I want. My only problem is that I'm using the...
16
by: Charles A. Landemaine | last post by:
I set a table with 100% width to occupy all available space, but in IE7 it uses more than that, it uses 100% of the page width instead of 100% of the table container. Could you test the page in IE7...
7
by: Leslie Sanford | last post by:
My area of programming is DSP. I write things like filters, oscillators, envelopes, etc. I've been looking at STL iterators, and what's struck me is that if I can find ways to model my code using...
80
by: Boltar | last post by:
Hi I need to store a number of integer values which I will then search on later to see if they exist in my container. Can someone tell me which container would be quickest for finding these...
13
by: LC's No-Spam Newsreading account | last post by:
I have happily lived for 15 years (our first web server started in 1993) without CSS, but I now decided to learn and experiment with it. My personal preference has always been that the width of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.