Last month, I had the pleasure of teaching a friend basic HTML and CSS for a job that required him to know the bare essentials of building a website. Instead of learning how to use Dreamweaver, he wanted to understand the way modern websites work, utilizing CSS stylesheets and table-less layouts.
For my latest project, I created a great interface for an administration panel, complete with great looking forms and buttons. The one thing that stuck out like a sore thumb, however, were the ugly radio buttons and checkboxes I had to use repeatedly throughout the panel, so I decided to fix them.
CSS is powerful in styling HTML documents and making things look the way you want. When writing CSS, there are a few factors to consider that can impact the way you write your code and structure your files. The following are some best bet practices to clean, effective styling with CSS.