Using CSS (Cascading Style Sheets)

Cascading Style Sheets is a technology that has been around for several years. It's a great way to assign style properties to HTML elements in your web pages, and offers several significant benefits over the old way of putting style information directly into HTML tags.

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

7 Comments Leave a comment

  1. Pingback: Week4-3 article about css « Weichingweng's Blog

  2. hannah says:

    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

  3. Julia says:

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

  4. shyam says:

    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 says:

      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.

  5. anonymous says:

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