Reply to Re: Space after div

Your name:

Reply:


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/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация