Reply to Re: Default leading for paragraphs

Your name:

Reply:


Posted by David Graham on 12/21/82 11:44

"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message
news:e14vlq$4vn$1@phys-news4.kolumbus.fi...
> Toby Inkster wrote:
>
> > The vertical gap between the two paragraphs is the sum of the lengths of
> > the following CSS properties as applied to the paragraphs in question:
>
> Nope.
>
> I'm not worried about the OP, who clearly has no idea of what he is
> doing and no desire to clarify it, but I'm worried about others who
> might be reading this thread.
>
> > padding-bottom of the top paragraph
> > border-bottom of the top paragraph
> > margin-bottom of the top paragraph
> > margin-top of the bottom paragraph
> > border-top of the bottom paragraph
> > padding-top of the bottom paragraph
>
> Vertical margins "collapse", i.e. margin-bottom and margin-top are not
> added but the _larger_ of them is used. This is essential, because the
> common browser defaults for p elements set margins (and no padding and
> no border), corresponding e.g. to
> p { margin: 1.12em 0; }
> with the nonzero value (setting top margin and bottom margin) typically
> adjusted to match the line-height value in the browser's default style
> sheet. This does _not_ create 1.12em + 1.12em spacing between paragraphs
> but just 1.12em spacing.
>
Thanks for that clarification - your quite correct in thinking people
following this thread may come away with the wrong idea - I certainly did
bye
David

[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

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