Bluemoon Code


 
 
 
 
 

Often, when you use floats (What is a float?) in your design, you have to clear them, otherwise, you will find your floated elements breaking out of their container. The only catch, is that you had to add extra markup (usually a <div>, a <br />, or a <span>) to apply the clear to. Thankfully, there is now a fix for that, that just requires a bit of css, and NO EXTRA markup (excluding a bit of IE hackery).

Simply, use a :after on the container of the floated elements with the clearing properties added to it.

Read the rest of this entry »

 
 

Welcome to Bluemoon Code! I'm your main updater, Brandon.

I'll be using this blog to post some of the web development tips that I come across while I'm reading, working, or just goofing off. I hope to do roughly a post every day, but some days, I may not be able to.

Thanks for coming,
Brandon