Professional Documents
Culture Documents
CSS PDF
CSS PDF
What is CSS?
Where can CSS be used?
CSS Syntax - selectors, properties & values
Selecting HTML elements
Inheritance & the cascade
what is CSS?
CSS = Cascaded Style Sheets
http://www.csszengarden.com
where can you use CSS?
inline styles
selector {
property1: value1;
property2: value2;
property3: value3;
}
h1 { color: orange; }
p {
color: #000000;
font-size: 12px;
font-family: Arial;
}
h1 {}
<h1>Introduction</h1>
#article {}
<p id="article">...text...</p>
.tab {}
<li class="tab">...text...</li>
inheritance & the cascade
(a.k.a. the BIG concepts)
inheritance
HTML
<p class="bold">
<a href="http://www.google.com">
Google
</a>
is an excellent search engine.
</p>
CSS
p.bold {
font-weight: bold;
}
document structure
all elements contained within another
element are its descendants
CSS
.myHappyShoes { color: yellow; }
.myHappyShoes { color: green; }
li.myHappyShoes { color: orange; }
#happyShoe { color: red; }
li#happyShoe { color: violet; }
li#happyShoe a { color: blue; }
about CSS & web standards
http://www.w3.org/Style/CSS
how’s our speed?
email us...
kevin.vanderbeken@apn.com.au
colin.gourlay@apn.com.au
next week...
file:///C:/Users/C
olin.Gourlay/Down
loads/BackToTheF
utureLogo.jpg