I have a DIV within a DIV, and have appropriate margin set on the ?top? of the nested div so that it is sitting on the floor of the parent DIV?. or so I think!
My problem is, when I preview this in a browser or liveview, it kind of inverts my nested DIV, i.e. the nested DIV becomes pinned to the ceiling of the parent DIV, and the margin appears to be pushing it up from the bottom!
You can see that the parent DIV, ?maincontent? has a nested DIV called ?maincontent_frost?. I applied 199px of padding so it would be pushed down to the floor of its parent Div, ?maincontent? it all looks good in Dreamweaver?s Design view, but as i mentioned, when you preview it in browser, it gets stuck to the top of ?maincontent?
Question
rageagainstmachine
I have a DIV within a DIV, and have appropriate margin set on the ?top? of the nested div so that it is sitting on the floor of the parent DIV?. or so I think!
My problem is, when I preview this in a browser or liveview, it kind of inverts my nested DIV, i.e. the nested DIV becomes pinned to the ceiling of the parent DIV, and the margin appears to be pushing it up from the bottom!
You can see that the parent DIV, ?maincontent? has a nested DIV called ?maincontent_frost?. I applied 199px of padding so it would be pushed down to the floor of its parent Div, ?maincontent? it all looks good in Dreamweaver?s Design view, but as i mentioned, when you preview it in browser, it gets stuck to the top of ?maincontent?
What am i doing wrong?
Test site here http://blu-berri.com/dump/test/
Link to comment
Share on other sites
11 answers to this question
Recommended Posts