Reply to Re: CSS: having line break before but not after an element

Your name:

Reply:


Posted by Mark Parnell on 05/26/05 02:05

Previously in alt.html, Martin Magnusson <martin@-xx-blecket-xx-.org>
said:

> I'm trying to modify a header tag to have a line break before the header
> (like display:block would do and like headers normally behave), but not
> after (like display:inline would do).

ISTM that everyone is trying to make it more complicated than it should
be. Isn't this basically what float is for? Setting float: left; on the
heading seems to do the trick (with an appropriate width, of course).
You may need to play with clears/margins on the surrounding elements,
depending on context.

--
Mark Parnell
http://www.clarkecomputers.com.au
alt.html FAQ :: http://html-faq.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

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