Posted by Els on 07/29/06 13:31
Beauregard T. Shagnasty wrote:
> Chris wrote:
>
>> It's probably not what you meant but I added an emtpy paragraph at the
>> bottom with its margin set to 0 and its working. It didn't seem to
>> work on the margin.
>
> Not a good idea. Some browsers may completely collapse an empty element,
> thus giving you no benefit. Add the padding to the last real paragraph
> as already stated.
>
> #maincenter p {padding: 2em; }
Wasn't stated by me though ;-)
My suggestion was #maincenter {padding-bottom:1px;}
The padding on the paragraph will not stop the margin of it collapsing
with the 0 margin of the div around it, which is causing the space.
--
Els http://locusmeus.com/
Navigation:
[Reply to this message]
|