Webdesign 9a
Webdesign 9a
Web Design
Web Design
S
2
Introducing
CSS
Web Design
S
3
Understanding
CSS
THINKING INSIDE THE BOX
S
4
Understanding
CSS
THINKING INSIDE THE BOX
S
5
Understanding
CSS
THINKING INSIDE THE BOX
S
6
Understanding
CSS
THINKING INSIDE THE BOX
S
7
S
8
S
9
S
10
S
11
EXAMPLE
S
12
EXAMPLE
S
13
Using external
CSS
S
14
Using external
CSS
href
This specifies the path to the CSS file
type
Web Design
rel
This specifies the relationship between the HTML
page and the file it is linked to. The value should
be stylesheet when linking to a CSS file
S
15
Using Internal
CSS
<style>
S
16
Using Internal
CSS
<style>
S
17
CSS SELECTORS
S
18
CSS SELECTORS
SELECTOR MEANING EXAMPLE
UNIVERSAL SELECTOR Applies to all elements in the *{}
document Targets all elements on the page
S
19
CSS SELECTORS
SELECTOR MEANING EXAMPLE
ID SELECTOR Matches an element whose #introduction { }
id attribute has a value that Targets the element whose id attribute has a value
matches the one specified after of introduction
the pound or hash symbol
Web Design
S
20
Last Rule
If the two selectors are identical, the latter
of the two will take precedence. Here you
can see the second i selector takes
precedence over the first.
S
21
Specificity
If one selector is more specific than the
others, the more specific rule will take
Web Design
S
22
Important
you can add !important after any property
value to indicate that it should be
Web Design
S
23
Inheritance
S
24
Assignment
ssion is necessary.)
S
25
Web Design
Thank You!
谢谢!