SlideShare une entreprise Scribd logo
1  sur  16
http://cssfounder.com
2
Outline
5.1 Introduction
5.2 Inline Styles
5.3 Embedded Style Sheets
5.4 Conflicting Styles
5.5 Linking External Style Sheets
5.6 Web Resources
Cssfounder.com
 In this lesson, you will learn:
 To control the appearance of a Web site by creating
style sheets.
 To use a style sheet to give all the pages of a Web site
the same look and feel.
 To use the class attribute to apply styles.
 To use style sheets to separate presentation from
content.
3
Cssfounder.com
 Cascading Style Sheets (CSS)
 Separation of structure from presentation
 Three methods of CSS:
 Inline Styles
 Embedded Style Sheets
 Conflicting Styles
 Linking External Style Sheets
4
Cssfounder.com
 Declare an individual element’s format
 Attribute style
 CSS property followed by a colon and a value
 i.e: style = “font-size:20pt”
5
Cssfounder.com
<body>
<p>This text does not have any style applied to it.</p>
<p style = "font-size: 20pt">This text has the
<em>font-size</em> style applied to it, making it 20pt.
</p>
<p style = "font-size: 20pt; color: #0000ff">
This text has the <em>font-size</em> and
<em>color</em> styles applied to it,
making it 20pt. and blue.</p>
</body>
6
The style attribute allows you to declare inline styles.
Separate multiple styles with a semicolon.
Cssfounder.com
 Embed an entire CSS document in an XHTML document’s
head section
Attributes Description
MIME type
type = “text/css”
Multipurpose Internet Mail Extensions (MIME) type
Describes a file’s content
Property Description
background-color Specifies the background color
font-family Specifies the name of the font to use
font-size Specifies a 14-point font
7
Cssfounder.com
<head>
<style type = "text/css">
em { background-color: #8000ff; color: white }
h1 { font-family: arial, sans-serif }
p { font-size: 14pt }
.special { color: blue }
</style>
</head>
<h1 class = "special">Deitel &amp; Associates, Inc.</h1>
<p>Deitel &amp; Associates, Inc. ..
programming, and Object Technology.</p>
<h1>Clients</h1>
<p class = "special"> The company's clients include
many <em>Fortune 1000 companies</em>,
government agencies, branches ….
and World Wide Web courses.</p>
8
this begins the style sheet section
Cssfounder.com
 Inheritance
 Descendant’s properties have greater specificity than
ancestor’s properties
9
Cssfounder.com
<style type = "text/css">
a.nodec { text-decoration: none }
a:hover { text-decoration: underline;color: red;background-color: #ccffcc }
li em { color: red;font-weight: bold }
ul { margin-left: 75px }
ul ul { text-decoration: underline; margin-left: 15px }
</style>
<h1>Shopping list for <em>Monday</em>:</h1>
<ul>
<li>Milk</li>
<li>Bread
<ul>
<li>White bread</li>
<li>Rye bread</li>
<li>Whole wheat bread</li>
</ul>
</li>
<li>Rice</li>
<li>Potatoes</li>
<li>Pizza <em>with mushrooms</em></li>
</ul>
<p><a class = "nodec" href = "http://www.food.com">Go to the Grocery store</a></p>
10
Cssfounder.com
<style type = "text/css">
a.nodec { text-decoration: none }
a:hover { text-decoration: underline;color: red;background-color: #ccffcc }
li em { color: red;font-weight: bold }
ul { margin-left: 75px }
ul ul { text-decoration: underline; margin-left: 15px }
</style>
<h1>Shopping list for <em>Monday</em>:</h1>
<ul>
<li>Milk</li>
<li>Bread
<ul>
<li>White bread</li>
<li>Rye bread</li>
<li>Whole wheat bread</li>
</ul>
</li>
<li>Rice</li>
<li>Potatoes</li>
<li>Pizza <em>with mushrooms</em></li>
</ul>
<p><a class = "nodec" href = "http://www.food.com">Go to the Grocery store</a></p>11
Cssfounder.com
 External style sheets
 Can provide uniform look and feel to entire site
12
Cssfounder.com
a { text-decoration: none }
a:hover { text-decoration: underline; color: red;
background-color: #ccffcc }
li em { color: red; font-weight: bold; background-color: #ffffff }
ul { margin-left: 2cm }
ul ul { text-decoration: underline; margin-left: .5cm }
13
Cssfounder.com
<head>
<link rel = "stylesheet" type = "text/css" href = "styles.css" />
</head>
<body>
<h1>Shopping list for <em>Monday</em>:</h1>
<ul>
<li>Milk</li>
<li>Bread
<ul>
<li>White bread</li>
<li>Rye bread</li>
<li>Whole wheat bread</li>
</ul>
</li>
<li>Rice</li>
<li>Potatoes</li>
<li>Pizza <em>with mushrooms</em></li>
</ul>
<p>
<a href = "http://www.food.com">Go to the Grocery store</a>
</p>
</body>
14
Cssfounder.com
15
Cssfounder.com
 www.w3.org/TR/css3-roadmap
 www.ddj.com/webreview/style
 tech.irt.org/articles/css.htm
16
Cssfounder.com

Contenu connexe

Tendances

Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
butest
 

Tendances (17)

HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
 
Tercer trabajo de drapi 02
Tercer trabajo de drapi 02Tercer trabajo de drapi 02
Tercer trabajo de drapi 02
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
HTML & CSS 2017
HTML & CSS 2017HTML & CSS 2017
HTML & CSS 2017
 
Html & CSS
Html & CSSHtml & CSS
Html & CSS
 
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
 
Html frames
Html framesHtml frames
Html frames
 
CSS Best practice
CSS Best practiceCSS Best practice
CSS Best practice
 
Not just a pretty (type)face
Not just a pretty (type)faceNot just a pretty (type)face
Not just a pretty (type)face
 
Rational HATS and CSS
Rational HATS and CSSRational HATS and CSS
Rational HATS and CSS
 
HTML all tags .........its to much helpful for beginners
HTML all tags .........its to much helpful for beginners HTML all tags .........its to much helpful for beginners
HTML all tags .........its to much helpful for beginners
 
Troubleshooting Email Like a Pro
Troubleshooting Email Like a ProTroubleshooting Email Like a Pro
Troubleshooting Email Like a Pro
 
Efficient, maintainable CSS
Efficient, maintainable CSSEfficient, maintainable CSS
Efficient, maintainable CSS
 
syllabus
syllabussyllabus
syllabus
 
Getting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
Getting to Grips with Firebug - Anthony Hortin - WordCamp SydneyGetting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
Getting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
 
Css basic
Css basicCss basic
Css basic
 
css-tutorial
css-tutorialcss-tutorial
css-tutorial
 

En vedette

ClassesResumeGmail -Ad
ClassesResumeGmail -AdClassesResumeGmail -Ad
ClassesResumeGmail -Ad
Louis Lewis
 
EmilyPrince-Ralby Provnance of the Moon Through the Comparison of Isotopic Ab
EmilyPrince-Ralby Provnance of the Moon Through the Comparison of Isotopic AbEmilyPrince-Ralby Provnance of the Moon Through the Comparison of Isotopic Ab
EmilyPrince-Ralby Provnance of the Moon Through the Comparison of Isotopic Ab
Emily Prince-Ralby
 

En vedette (18)

P dts pmk_reglament
P dts pmk_reglamentP dts pmk_reglament
P dts pmk_reglament
 
General information
General informationGeneral information
General information
 
ClassesResumeGmail -Ad
ClassesResumeGmail -AdClassesResumeGmail -Ad
ClassesResumeGmail -Ad
 
EmilyPrince-Ralby Provnance of the Moon Through the Comparison of Isotopic Ab
EmilyPrince-Ralby Provnance of the Moon Through the Comparison of Isotopic AbEmilyPrince-Ralby Provnance of the Moon Through the Comparison of Isotopic Ab
EmilyPrince-Ralby Provnance of the Moon Through the Comparison of Isotopic Ab
 
9AS Start of the dinner group work
9AS Start of the dinner group work9AS Start of the dinner group work
9AS Start of the dinner group work
 
ゼミ ぱわぽ 最新_12.9
ゼミ ぱわぽ 最新_12.9ゼミ ぱわぽ 最新_12.9
ゼミ ぱわぽ 最新_12.9
 
My Certificates - Volume 1
My Certificates - Volume 1My Certificates - Volume 1
My Certificates - Volume 1
 
Cancer treatment tampa
Cancer treatment tampaCancer treatment tampa
Cancer treatment tampa
 
Acto cultural del 6 de noviembre 2015
Acto cultural del 6 de noviembre 2015Acto cultural del 6 de noviembre 2015
Acto cultural del 6 de noviembre 2015
 
La historia del mercadeo
La historia del mercadeoLa historia del mercadeo
La historia del mercadeo
 
Sequoia Utility SOQ
Sequoia Utility SOQSequoia Utility SOQ
Sequoia Utility SOQ
 
Innovatous Consulting
Innovatous ConsultingInnovatous Consulting
Innovatous Consulting
 
Makalah ekonomi teknik
Makalah ekonomi teknikMakalah ekonomi teknik
Makalah ekonomi teknik
 
Chapter1
Chapter1Chapter1
Chapter1
 
Why we love workflow automation tools
Why we love workflow automation tools Why we love workflow automation tools
Why we love workflow automation tools
 
Challenges of Being Single
Challenges of Being SingleChallenges of Being Single
Challenges of Being Single
 
Baromètre GPL aout 2016
Baromètre GPL aout 2016Baromètre GPL aout 2016
Baromètre GPL aout 2016
 
CV2 - Mads Kr. Overgaard
CV2 - Mads Kr. OvergaardCV2 - Mads Kr. Overgaard
CV2 - Mads Kr. Overgaard
 

Similaire à Website designing company | Cssfounder.com

Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
butest
 
Chapter 4a cascade style sheet css
Chapter 4a cascade style sheet cssChapter 4a cascade style sheet css
Chapter 4a cascade style sheet css
Tesfaye Yenealem
 
GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
Heather Rock
 

Similaire à Website designing company | Cssfounder.com (20)

Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.ppt
 
CSS.pptx
CSS.pptxCSS.pptx
CSS.pptx
 
Intermediate Web Design.doc
Intermediate Web Design.docIntermediate Web Design.doc
Intermediate Web Design.doc
 
Chapter 4a cascade style sheet css
Chapter 4a cascade style sheet cssChapter 4a cascade style sheet css
Chapter 4a cascade style sheet css
 
GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
CSS Foundations, pt 1
CSS Foundations, pt 1CSS Foundations, pt 1
CSS Foundations, pt 1
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8
 
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStartExtreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
 
Css Founder.com | Cssfounder se
Css Founder.com | Cssfounder seCss Founder.com | Cssfounder se
Css Founder.com | Cssfounder se
 
HTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.pptHTML Web Devlopment presentation css.ppt
HTML Web Devlopment presentation css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
css.ppt
css.pptcss.ppt
css.ppt
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS Introduction
 
Web Designing
Web DesigningWeb Designing
Web Designing
 
Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder.com | Cssfounder Company
Css Founder.com | Cssfounder Company
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 

Plus de Css Founder

Plus de Css Founder (20)

Cssfounder.com website designing company in delhi
Cssfounder.com website designing company in delhiCssfounder.com website designing company in delhi
Cssfounder.com website designing company in delhi
 
Internet technology and web designing
Internet technology and web designingInternet technology and web designing
Internet technology and web designing
 
Web page design-cssfounder
Web page design-cssfounderWeb page design-cssfounder
Web page design-cssfounder
 
Tech dev cssfounder.com
Tech dev cssfounder.comTech dev cssfounder.com
Tech dev cssfounder.com
 
Digital india-cssfounder.com
Digital india-cssfounder.comDigital india-cssfounder.com
Digital india-cssfounder.com
 
Poverty inindia CssFounder.com
Poverty inindia CssFounder.comPoverty inindia CssFounder.com
Poverty inindia CssFounder.com
 
Poverty in india Cssfounder.com
Poverty in india Cssfounder.comPoverty in india Cssfounder.com
Poverty in india Cssfounder.com
 
Website designing company in delhi e commerce
Website designing company in delhi e commerceWebsite designing company in delhi e commerce
Website designing company in delhi e commerce
 
Website designing company_in_delhi blogging
Website designing company_in_delhi bloggingWebsite designing company_in_delhi blogging
Website designing company_in_delhi blogging
 
Website designing company in delhi blog powerpoint
Website designing company in delhi blog powerpointWebsite designing company in delhi blog powerpoint
Website designing company in delhi blog powerpoint
 
Website designing company_in_delhi e-business
Website designing company_in_delhi e-businessWebsite designing company_in_delhi e-business
Website designing company_in_delhi e-business
 
Website designing company_in_mumbai_digital india
Website designing company_in_mumbai_digital indiaWebsite designing company_in_mumbai_digital india
Website designing company_in_mumbai_digital india
 
Website designing company_in_delhi_digitization practices
Website designing company_in_delhi_digitization practicesWebsite designing company_in_delhi_digitization practices
Website designing company_in_delhi_digitization practices
 
Website designing company_in_delhi_education
Website designing company_in_delhi_educationWebsite designing company_in_delhi_education
Website designing company_in_delhi_education
 
Website designing company_in_delhi_education system
Website designing company_in_delhi_education systemWebsite designing company_in_delhi_education system
Website designing company_in_delhi_education system
 
Website designing company_in_delhi_phpwebdevelopment
Website designing company_in_delhi_phpwebdevelopmentWebsite designing company_in_delhi_phpwebdevelopment
Website designing company_in_delhi_phpwebdevelopment
 
Website development process
Website development processWebsite development process
Website development process
 
Webdesign website development_company_surat
Webdesign website development_company_suratWebdesign website development_company_surat
Webdesign website development_company_surat
 
Internet website designing_company_in_delhi
Internet website designing_company_in_delhiInternet website designing_company_in_delhi
Internet website designing_company_in_delhi
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 

Dernier

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Website designing company | Cssfounder.com

  • 2. 2 Outline 5.1 Introduction 5.2 Inline Styles 5.3 Embedded Style Sheets 5.4 Conflicting Styles 5.5 Linking External Style Sheets 5.6 Web Resources Cssfounder.com
  • 3.  In this lesson, you will learn:  To control the appearance of a Web site by creating style sheets.  To use a style sheet to give all the pages of a Web site the same look and feel.  To use the class attribute to apply styles.  To use style sheets to separate presentation from content. 3 Cssfounder.com
  • 4.  Cascading Style Sheets (CSS)  Separation of structure from presentation  Three methods of CSS:  Inline Styles  Embedded Style Sheets  Conflicting Styles  Linking External Style Sheets 4 Cssfounder.com
  • 5.  Declare an individual element’s format  Attribute style  CSS property followed by a colon and a value  i.e: style = “font-size:20pt” 5 Cssfounder.com
  • 6. <body> <p>This text does not have any style applied to it.</p> <p style = "font-size: 20pt">This text has the <em>font-size</em> style applied to it, making it 20pt. </p> <p style = "font-size: 20pt; color: #0000ff"> This text has the <em>font-size</em> and <em>color</em> styles applied to it, making it 20pt. and blue.</p> </body> 6 The style attribute allows you to declare inline styles. Separate multiple styles with a semicolon. Cssfounder.com
  • 7.  Embed an entire CSS document in an XHTML document’s head section Attributes Description MIME type type = “text/css” Multipurpose Internet Mail Extensions (MIME) type Describes a file’s content Property Description background-color Specifies the background color font-family Specifies the name of the font to use font-size Specifies a 14-point font 7 Cssfounder.com
  • 8. <head> <style type = "text/css"> em { background-color: #8000ff; color: white } h1 { font-family: arial, sans-serif } p { font-size: 14pt } .special { color: blue } </style> </head> <h1 class = "special">Deitel &amp; Associates, Inc.</h1> <p>Deitel &amp; Associates, Inc. .. programming, and Object Technology.</p> <h1>Clients</h1> <p class = "special"> The company's clients include many <em>Fortune 1000 companies</em>, government agencies, branches …. and World Wide Web courses.</p> 8 this begins the style sheet section Cssfounder.com
  • 9.  Inheritance  Descendant’s properties have greater specificity than ancestor’s properties 9 Cssfounder.com
  • 10. <style type = "text/css"> a.nodec { text-decoration: none } a:hover { text-decoration: underline;color: red;background-color: #ccffcc } li em { color: red;font-weight: bold } ul { margin-left: 75px } ul ul { text-decoration: underline; margin-left: 15px } </style> <h1>Shopping list for <em>Monday</em>:</h1> <ul> <li>Milk</li> <li>Bread <ul> <li>White bread</li> <li>Rye bread</li> <li>Whole wheat bread</li> </ul> </li> <li>Rice</li> <li>Potatoes</li> <li>Pizza <em>with mushrooms</em></li> </ul> <p><a class = "nodec" href = "http://www.food.com">Go to the Grocery store</a></p> 10 Cssfounder.com
  • 11. <style type = "text/css"> a.nodec { text-decoration: none } a:hover { text-decoration: underline;color: red;background-color: #ccffcc } li em { color: red;font-weight: bold } ul { margin-left: 75px } ul ul { text-decoration: underline; margin-left: 15px } </style> <h1>Shopping list for <em>Monday</em>:</h1> <ul> <li>Milk</li> <li>Bread <ul> <li>White bread</li> <li>Rye bread</li> <li>Whole wheat bread</li> </ul> </li> <li>Rice</li> <li>Potatoes</li> <li>Pizza <em>with mushrooms</em></li> </ul> <p><a class = "nodec" href = "http://www.food.com">Go to the Grocery store</a></p>11 Cssfounder.com
  • 12.  External style sheets  Can provide uniform look and feel to entire site 12 Cssfounder.com
  • 13. a { text-decoration: none } a:hover { text-decoration: underline; color: red; background-color: #ccffcc } li em { color: red; font-weight: bold; background-color: #ffffff } ul { margin-left: 2cm } ul ul { text-decoration: underline; margin-left: .5cm } 13 Cssfounder.com
  • 14. <head> <link rel = "stylesheet" type = "text/css" href = "styles.css" /> </head> <body> <h1>Shopping list for <em>Monday</em>:</h1> <ul> <li>Milk</li> <li>Bread <ul> <li>White bread</li> <li>Rye bread</li> <li>Whole wheat bread</li> </ul> </li> <li>Rice</li> <li>Potatoes</li> <li>Pizza <em>with mushrooms</em></li> </ul> <p> <a href = "http://www.food.com">Go to the Grocery store</a> </p> </body> 14 Cssfounder.com
  • 16.  www.w3.org/TR/css3-roadmap  www.ddj.com/webreview/style  tech.irt.org/articles/css.htm 16 Cssfounder.com