Home › Forums › CSS › twentytwelve theme css mess › Re: twentytwelve theme css mess
March 12, 2013 at 10:28 am
#127885
Historical Forums User
Participant
Hey jk,
I noticed a couple of things that are causing your issue
- You are using clear:both; on the search form and on all h1 tags.
- But then you are overwriting the clear:both using positioning attributes
- This will be a never ending battle when building a responsive site and a lot of unnecessary CSS
I would recommend that you
- Remove position attributes from all elements in your header
- Look at using clear:right on search from instead of clear:both
- Remove the clear:both from h1 and h2 tags
- Re-position elements using margin and padding
* Side note I would look at removing the clear:both from your h1, h2,h3, h4, h5, h6 elements and create a class that you call only when you need to use the clear:both attribute.
If this does not work for you try putting the code in Codepen an leaving us a link here.