Click to See Complete Forum and Search --> : [RESOLVED] Expanding div issues


Ibanez
01-27-2009, 04:32 AM
Hello everyone!

I'm having some issues with divs (tables were easier - although not the way forward...)

Firstly, this is what I have:
<div id="wrapper">

<div id="header">
<img src="images/header.jpg"/> </div>

<div id="content">
</div>

<div id="footer">
<img src="images/footer.jpg" />
</div>

</div>

Now what I want Is for #footer to always be at the bottom of #wrapper (which has a height of 300px).
And #content should push #footer down depending on the content of that page...
Could someone please tell me if it is possible for a div to push another down, and if its possible for a div to be at the bottom of another div?

Thank you in advance!

scragar
01-27-2009, 04:58 AM
footer will always be at the bottom of wrapper, that's the way the box model works.

6StringGeek
01-29-2009, 02:27 PM
There are 2 ways I know of:

faux column: http://www.alistapart.com/articles/fauxcolumns/

and

the holy grail: http://www.alistapart.com/articles/holygrail/

msparks
01-29-2009, 08:59 PM
Yeah, you're going to have to go with the good ole holy grail.

Ibanez
01-30-2009, 01:40 AM
Thank you for your replies!
I was able to fix the issue and the layout is fine now, Im just having a few functional problems with css rollovers in IE... I think IE sux!