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

Your name:

Reply:


Posted by Martin Magnusson on 05/25/05 15:04

Sid Ismail wrote:
> On Wed, 25 May 2005 10:48:25 +0200, Martin Magnusson
> <martin@-xx-blecket-xx-.org> wrote:
>
> : Hi.
> :
> : 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).
> :
> : How can I do this with CSS?
>
>
> top style-
> .header1 {margin-top:6px; margin-bottom:1px;
> font-size:180%; font-weight:bold;}
>
> then,
> <div class=header1>bla bla bla</div>

I would rather modify <h4> directly, instead of having to use different
types of divs etc. And using
h4{
margin-top:6px;
margin-bottom:1px;
}
still makes the browsers I've tried line break after the </h4>. Is there
any way to prevent that?

[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

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