1 reply [Last post]
gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 5 years 11 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

Well the question explains it all Laughing out loud

heres the code in question

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

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 39 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Dumb in action?

It appears to be an attempt to cause an element to contain or enclose its float children by someone with little understanding of what's going on. I'm guessing some equally gormless fool started the hack and others have blindly copied it.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.