intro to CSS
Onto styling your handcrafted XHTML pages - we will work with CSS and the different ways on how you can apply them to your page
lesson content
- introduction to CSS syntax
- applying CSS styling
- CSS selectors
- universal settings and resetting styles
lesson notes
- CSS allow for easier control of page layout
- CSS can be applied in 3 different ways: inline, embedded or external
- every XHTML document requires a valid link to the CSS file (consider your file path!)
- using 1 external CSS to control the entire website will ensure that the file is loaded when the very first page is viewed, it will then already be in the browser’s memory and speed the loading of other pages up
- CSS rules consist of a selector and its properties, always use 1 property with its value per line and complete with the semcolon “;”
- you can target each HTML element with CSS and control its appearance
- avoid using any styling within the HTML code
download PDF
homework
net talk
- alistapart.com Fear of Style Sheets
(by Jeffrey Zeldman) - friendlybit.comBeginner’s guide to CSS
- thenoodleincident.comDesign Rant
net references
- w3.orgCascading Style Sheets
- meyerweb.comthe master Eric Meyer’s test pages
- tizag.comintroduction to CSS
Constanza ;)
well done today - you had a bit of an overload of information and tips for working methods… so you did well to get it all setup and working ;)
Just wanted to leave you a few more notes with those keyboard shortcuts :)
To create / save / open / close files
To work between TacoHTML and Firefox
To code and preview the page
ALWAYS save first - then PREVIEW - and REFRESH your page
(note: you will need to have opened the file twice for this: once in Taco, and once in Firefox
and lastly - 2 important screenshots I sent you during the lesson via chat:
Comment by prisca — May 8, 2008
The general idea is that by using CSS I will work better with my web pages (more control, easy maintenance)
I reviewed the shortcuts. I will use them more often.
tables can be made by using No-Fault CSS?
validation: Why do we need to validate pages?
some info about CSS was addressed to html. Are those the same for Xhtml?
Design Rant: Not sure about that
W3C is mentioned all the time… what is it?
With my homework I will be able to understand things better.
Comment by Constanza Martinez — May 15, 2008