is H1 supposed to behave like a block element ?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

is H1 supposed to behave like a block element ?

Post by Live24x7 »

I am facing an issue with h1 tags .

When I place a title within h1 tag - it does not get into a new block but it overlaps the previous css element.
My previous block has three boxes with the following css
#threeboxes {margin: 20px 0 30px 0;}
.box1 { width:170px; height:90px; margin:0 5px 5px 0; float:left;}
.box2{ width:170px; height:90px; float:left; margin:0 5px 5px 10px;}
.box3{ width:170px; height:90px; float:right; margin:-3px 5px 5px 10px; clear: none;}
The problem definitely lies in these three blocks - because if i place the h1 element before this block - it behaves the way it should.
But i am not getting it to work the way it should.
What do i do to get h1 to come into a a new block ?

thanks
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

Re: is H1 supposed to behave like a block element ?

Post by Live24x7 »

hey i solved this issue: i needed to specify the height attribute of #threeboxes :)
Post Reply