alexmel7
10-26-2009, 07:19 PM
Hello everyone,
I have a nested div that I want to space vertically from its containing div. However, if i add a margin-top to the nested div, it moves both the nested and containing div, and if I apply padding-top to the nested div it does nothing. If I apply padding to the container div, it works, execpt it moves my footer as well. Any suggestions?
Here is an example of what I'm working with:
<div id="container">
<div id="nested"></div>
</div>
I have a nested div that I want to space vertically from its containing div. However, if i add a margin-top to the nested div, it moves both the nested and containing div, and if I apply padding-top to the nested div it does nothing. If I apply padding to the container div, it works, execpt it moves my footer as well. Any suggestions?
Here is an example of what I'm working with:
<div id="container">
<div id="nested"></div>
</div>