Page 1 of 1

is H1 supposed to behave like a block element ?

Posted: Sun Jul 29, 2012 10:32 am
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

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

Posted: Sun Jul 29, 2012 11:27 am
by Live24x7
hey i solved this issue: i needed to specify the height attribute of #threeboxes :)