November 23, 201213 yr Hey guys, This quesition is entirely of my own making (i.e. not planning enough first). Basically, I am using this clearfix code: /*Clearfix*/ .clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; } .clearfix { display: inline-block; } html[xmlns] .clearfix { display: block; } * html .clearfix { height: 1%; } iframe { text-align: center; } The issue i am having is that i want to hide an element, using display:none to an element that i have added the clearfix class (it containts a display: inline-block;) too. I have tried it in different orders but i cant seem to make the element hidden. I should also mention that the reason i am hiding certain parts is because the theme is responsive. Any help woult be greatly appreciated.
November 23, 201213 yr Have a read of this article: http://css-tricks.com/places-its-tempting-to-use-display-none-but-dont/
November 24, 201213 yr <style> .dNone { display: none !important; } </style> Add that class AFTER all your CSS and then add that class to your HTML element. It should no longer display. the !important means CSS should over write any other styling before or after this, unless another !important is specified.
November 26, 201213 yr Without seeing your code, my first assumption, too, would be that it is entered in the wrong order in your CSS. An example would help!
Create an account or sign in to comment