Articles Tagged ‘CSS’

Easy Semantic Forms with CSS

In the early days of the Internet, web sites were for gathering and displaying information. In its 20 year history, this hasn’t changed much! At some point on a site you have to enter your details or what information you’re searching for. So, it makes sense that the thing I spend most of my time doing is creating forms!

Most of the time you see a form, the label is on the left and the field is on the right, with validation or help after the input field. There are lots of ways this can be laid out, but the simplest and most semantically correct method is hardly ever used. What I’m going to show you is how to lay out a form properly with standards-compliant CSS.

Read more…

Is CSS a black art?

CSSRecently, I’ve been asked a lot of questions about CSS and my commitment to it. I’m a purist when it comes to the web. I firmly believe that the only way to create a web site is to use standards-compliant CSS that is cross-compatible with all major browsers. Javascript should only be used as a progressive enhancement technique and should certainly not be relied upon (yes, I’m looking at you ASP .NET). Most of my colleagues regard this stance as noble, but somewhat stupid in the “real world”, where it’s not always getting it done “right”, it’s just getting it done. Why is CSS considered such a black art?

Read more…