Reply to Re: margin or padding?

Your name:

Reply:


Posted by Jukka K. Korpela on 05/28/07 21:20

Scripsit Knut Krueger:

> Is there a way to get the lines (1 and 2) with a <br /> spacing?

There is no such thing as <br /> spacing. The <br> or <br /> means line
break. Browsers often interpret a lone <br> as a request for empty line, but
don't rely on such (mis)behavior.

Just use margin settings in CSS.

> Its working wiht
> <li> line 1</li>
> <br />
> <li> line 2</li>
> buts an error in the validating

Certainly it's an error, since nothing but whitespace is allowed between
<li> elements.

Using <li>line<br></li> would be valid but pointless: no particular effect
is guaranteed, and you can affect vertical spacing more easily in CSS.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

[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

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