{"id":567,"date":"2011-06-06T13:37:37","date_gmt":"2011-06-06T13:37:37","guid":{"rendered":"http:\/\/keithdevon.wpengine.com\/?p=567"},"modified":"2011-06-06T13:37:37","modified_gmt":"2011-06-06T13:37:37","slug":"proper-float-clearing","status":"publish","type":"post","link":"https:\/\/keithdevon.com\/proper-float-clearing\/","title":{"rendered":"Proper float clearing"},"content":{"rendered":"<p>I was browsing through Forrst recently and happened across the following advice on float clearing.<\/p>\n<blockquote><p>An easy way to properly clear floats without extra markup. If you&#8217;re not using some sort of clearfix you probably should be.<\/p><\/blockquote>\n<p><code>.clearself:before,<br \/>\n.clearself:after {<br \/>\ncontent: \" \";<br \/>\ndisplay: block;<br \/>\nheight: 0;<br \/>\noverflow: hidden;<br \/>\n}<br \/>\n.clearself:after {clear: both;}<br \/>\n.clearself {zoom: 1;} \/* IE &lt; 8 *\/<\/code><\/p>\n<p>This looks like a great way of reducing design related markup in your HTML. What do you think? Have you tried this technique before?<\/p>\n<p>The original post is <a href=\"http:\/\/forrst.com\/posts\/Proper_Float_Clearing-Y6S\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was browsing through Forrst recently and happened across the following advice on float clearing. An easy way to properly clear floats without extra markup. If you&#8217;re not using some sort of clearfix you probably should be. .clearself:before, .clearself:after { content: &#8221; &#8220;; display: block; height: 0; overflow: hidden; } .clearself:after {clear: both;} .clearself {zoom: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[12],"tags":[19],"acf":[],"_links":{"self":[{"href":"https:\/\/keithdevon.com\/wp-json\/wp\/v2\/posts\/567"}],"collection":[{"href":"https:\/\/keithdevon.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/keithdevon.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/keithdevon.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/keithdevon.com\/wp-json\/wp\/v2\/comments?post=567"}],"version-history":[{"count":0,"href":"https:\/\/keithdevon.com\/wp-json\/wp\/v2\/posts\/567\/revisions"}],"wp:attachment":[{"href":"https:\/\/keithdevon.com\/wp-json\/wp\/v2\/media?parent=567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/keithdevon.com\/wp-json\/wp\/v2\/categories?post=567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/keithdevon.com\/wp-json\/wp\/v2\/tags?post=567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}