Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Lecture 8 - Creating Styles

Lecture 8 - Creating Styles

Ratings: (0)|Views: 5 |Likes:
Published by curlicue

More info:

Published by: curlicue on Oct 21, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less





Lecture 8 – Creating Styles
In this Lecture, we begin our discussion of CSS
Cascading Style Sheets
Here, we focus on constructing Individual Style Rules
Specifically, we survey theConstruction of Selectors,
which allowspin-point application of formatting.
As we shall see, we may target an Element for formattingbased on:
Elementtypeor name
Element’sclassor id 
Simple or complex information about the Element’scontext
The presence of attributes and values
 This will prepare us for related discussions of:
Methods of style application (e.g., style sheets)
Actual formatting patterns (declarations)
After establishing the basic structure of your page…
You will want to apply formatting rules.
This is accomplished separately, viaStyle Rules.
Soon, we will discuss application methods:
Applied separately, asInline style rules.
Applied in groups, via style sheets:
(Internal)style sheets;
Externalstyle sheets.
First, let’s discuss how to create style rules
And how to apply them to selected elements.
We will learn more about the actualpropertiesin the next lectures.
Today, our examples will stick to fairly obvious rules, like:
which sets the color propertyof the targeted element(s)
Here, to the value, red.
Let’s take a look at style rule structure.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->