You are here: Re: <p> or <br> « HTML « IT news, forums, messages
Re: <p> or <br>

Posted by Steve Pugh on 10/09/06 14:30

Jim Scott wrote:

> On my site, which is almost all pictures with text, using <br> avoids a space
> appearing between the text and the picture or is that because I use </p>?

Most browsers give top and bottom margins to paragraphs. So <p>...</p>
will have some white space before and after it.

You can suggest that the margins be zero size via CSS, so if it is
logically a paragraph but you don't want the white space, use
<p>...</p> and set the margins to zero in CSS. But if it is not
logically a paragraph don't use <p>...</p>.

Steve

 

Navigation:

[Reply to this 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

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