Archive for the ‘HTML’ Category
The Easy Way To Clear Floats
I bet you’ve used an empty div to clear floats before. I always used <div class="clear"></div>, in fact you’ll see it used all throughout the code for this site! I recently learn that setting overflow: hidden; on whatever is wrapping the floated elements works just as well and keeps your code cleaner! What methods do you use...
Text Selection Color Tricks
If you know some browser specific CSS, then you may have come across ::-moz-selection {color: #fff; background: #f00;} but did you know you can give each tag its own color? These blocks of HTML & CSS includes common tags to give you the basic idea. Basic <p>Some text in paragraph tags.</p> <ul> <li>Nothing like a good list</li> <li>To get the...
