Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Margin problem
- Brian Tozer
May 8, 2004, 9:58 pm
rate this thread
when I add extra content to the bordered content area at the right of the
menu box, the content box height expands as expected, until it's bottom
border is below the bottom of the viewport.
Using CSS I have been unable to create a 20px margin below the content box
so that there is background image visible there.
I am somewhat familiar with CSS and have tried many semi-obvious things to
Any help would be appreciated.
Re: Margin problem
Because you use absolute positioning. Absolutely positioned elements don't
take any space in structure flow, so the margin doesn't count because your
div is non-existent as far as the flow is concerned. Use something like
border-right: #444 5px solid;
border-top: #444 5px solid;
font: 13px arial, sans-serif;
border-left: #444 5px solid;
border-bottom: #444 5px solid;