height: auto does not work to automatically resize header

Posted by slevin on Stack Overflow See other posts from Stack Overflow or by slevin
Published on 2013-11-10T21:49:30Z Indexed on 2013/11/10 21:53 UTC
Read the original article Hit count: 154

Filed under:
|
|

I'm trying to do a simple thing in CSS

I have a header tag and inside that a couple of h tags. So, in order to have a responsive design I do

height:auto;

inside the header tag, so it will automatically stretch to contain the h tags. Right?

But does not work, headeris just a line in the top of the page. t should stretch to contain the titles, right?

What am I missing?

Is it a good practice to put CSS in the h tags and not style header at all? So h tags will be like the header in user's eye?

Thanks in advence

Check it here

© Stack Overflow or respective owner

Related posts about html

Related posts about css