Archive for April, 2009

Starting Good CSS Habits: Part 3

Wednesday, April 29th, 2009

The series of posts on Starting Good CSS Habits begins here.

Now that we have work on improving our HTML in the previous articles, we are ready to start applying some CSS to the page. We will begin by discussing text and fonts.

(more…)

Starting Good CSS Habits: Part 2

Wednesday, April 8th, 2009

The series of posts on Starting Good CSS Habits begins here.

Christoph Wiese, a friend who already has good CSS habits, made some good points I forgot to put in the last post. Before we keep going, it is worth going over them.

(more…)

Starting Good CSS Habits: Part 1

Thursday, April 2nd, 2009

I am often surprised by how much bad HTML is out there. Especially HTML that does not use Cascading Style Sheets yet. CSS has been around for over 10 years now! It was added to HTML in 1997 and well-supported (at least reasonably) in web browsers by 2000. I think the reason many people never upgraded is that they either learned HTML before 2000, they learned it from sources (friends, coworkers, internet, legacy code) from before CSS, or they learned just enough to get a site online and never bothered learning the “right way”.

Legacy sites are not always worth the trouble to update—I know I have plenty of old code still floating around out there—so their flaws are understandable. But some folks are carrying around their bad HTML habits still. If you ask them to code a page they probably know that frames should not be used, so they use a table to layout the page instead. They might use <center> when they want text to center. I see bad code and misused tags all the time. You can “view-source” on many major websites and see bad code by people who should know better.

If that sounds like you or someone you know, keep reading, I will try to help you break your bad habits and start good ones.

(more…)