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]
|