Make sure you don't miss the latest insights and tips. Click here to sign up for my mailing list now! ยป

Using CSS (Cascading Style Sheets)

Benefits of CSS

CSS is flexible

Styles can be written in one place (separate style sheets) and assigned to HTML elements through class or ID properties. It’s way easier and quicker to change styles across a whole site when they’re defined in one place.

CSS is Lightweight

Using CSS (like class=”main-nav”) creates far smaller HTML files than writing style into every HTML tags (like border=”1″ cellpadding=”3″ cellspacing=”1″ backgroundcolor=”#ffc”).

CSS helps separate style from content

Keeping your style definitions separate from your content and content-structure makes it possible to re-purpose the same content for different media. This includes styling pages differently for printing, as well as other user agents like voice (text-to-speech) and mobile devices.

CSS for Web Design: Contents

Introduction to CSS
Beginner’s introduction to Cascading Style Sheets (CSS)
Inheritance and Cascading Styles in CSS
Introduction to how styles apply in CSS through inheritance and cascading.
Block vs Inline display style in CSS
HTML elements can be displayed either in block or inline style. The difference between these is one of the most basic things you need to know in order to use CSS effectively.
Datasheet-style form using HTML, CSS and JavaScript
Make a datasheet-style web form using HTML, CSS and JavaScript
Tabular list-style form using HTML, CSS and JavaScript
Create a tabular list-style web form using HTML, CSS and JavaScript
Keeping your content in order of priority with flexible CSS layouts.
How to keep your most important content at the top of your page, no matter what kind of column layout you wish to achieve.

Other CSS resources

Style Master CSS tutorial
A very good place to get a broad overview of what CSS is and what you can do with it.
CSS Help pile
A great collection of links to CSS tutorials, ranging from moderate to advanced level
CSS3.com
A thorough reference of CSS properties, with examples.
40 free CSS layouts for you to use
Multi-column, fixed or liquid layout, every combination is here, tried & tested.
Yahoo! UI Library: Grids CSS
(Not for beginners) Grids CSS is a suite of seven web page templates and the ability to nest grids of one to four columns within the content area of those templates. Together, the combined template and grid system enable you to implement over 100 different CSS layouts using only 1.82KB of includes.

Master the Full Range of Pro Web Skills

About the author

Ben Hunt

Ben is the creator of Web Design From Scratch. He started writing articles about web design to kill time on a long train commute, and is now one of the most influential figures on the subject of effective web design. He has written three books and spoken at multiple conferences internationally.

hannah - 4 years ago

i’m I.T. student one of my subject now is CSWDO3 i need your help to know about XML,CSS and javascript .

Thank you

Julia - 3 years ago

Thanks you so much for all those links. Being a newbie, I appreciate blogs like yours that extend so much assistance for web designers.

shyam - a couple of years ago

i want to create a website using css can you please help me out , i don’t no how to use it exactly

    Ben Hunt - a couple of years ago

    There are a few tutorials on this site, but the best resource is the Pro Web Design Course. I am planning to release some smaller sections of the course in a couple of months.

anonymous - last year

loved the details and I had to do a school project, it really helped!!!

    kai - last year

    Of course you did it was a good website

Comments are closed