I'm using responsive design.
I have a logo image that I have float:left on anything wider than tablets with a byline (centered) and also room for ads (float:right) in the header.
On anything below tablet size I have removed the byline and ads with Display:none and that works however the setting I have for logo "float:none; display:block; margin:0 auto;" isn't working. The logo is still displaying as float:left on all devices below tablet size.
I have validated css and html
CSS for tablet size and above:
.logo {float:left;
margin:0; }
CSS for anything below tablet size:
.logo {float:none; display:block; margin:0 auto; }
.byline { display:none; }
.ad { display:none; }
HTML:
<div class="logo">
<img src="images/logo1.gif" alt="name">
</div>
<div class="ad">####Advertize####</div>
<div class="byline">#######byline#########</div>
Can some one tell me what I'm doing wrong?