Whats with this trick , who invented it and whats it for ?

Well the question explains it all Laughing out loud

heres the code in question

.clear:before, .clear:after {
  content:"";
  display:table
}

Issue with clearing left and right floats within the same DIV

Hey everyone! Thanks in advance for your help. I've been a long time lurker and I finally have an issue I couldn't solve by just searching the forum...

I'll try to make this as clear as possible. First, a brief description..

Clearfix issue - a margin is added

Hi,

i'm using Clearfix method to clear floated elements. And on one of the pages I realized that my layout got slightly broken. I've managed to reproduce the issue here:

http://jsfiddle.net/nyxBp/2/

Could you explain why when I apply clearfix class I see a margin between container and footer, whereas old clear:both does not cause this issue? Also, is it possible to use clearfix and get rid of this margin?

Thanks,
Pawel

Clearfix issue - a margin is added

Hi,

i'm using Clearfix method to clear floated elements. And on one of the pages I realized that my layout got slightly broken. I've managed to reproduce the issue here:

http://jsfiddle.net/nyxBp/2/

Could you explain why when I apply clearfix class I see a margin between container and footer, whereas old clear:both does not cause this issue? Also, is it possible to use clearfix and get rid of this margin?

Thanks,
Pawel

//mod edit: Topic closed. Duplicate topic.~gt

Inherent CSS

Im very new to CSS so I apologize if this is a dumb question...

Is there any inherent CSS classes?

For example, I am trying to make some minor edits to my wordpress theme. All of the featured pictures on my front page are contained within a div class="wrap" and at the end of each featured picture there is a div class="clear". I have looked up both and there is no defined .wrap or .clear. I have been looking everywhere in the editor section of my wordpress site but havent found anything.

Syndicate content