SlideShare a Scribd company logo
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

More Related Content

PPTX
Visualforce css developer guide(by forcetree.com)
PPTX
Customizing the Appearance and HTML Output of Visualforce Pages
PPTX
David Weliver
PPT
Basic HTML/CSS
PDF
Html css
PPTX
Html Css Mistakes
PDF
How to create Custom Page Template in WordPress
PPT
Ddpz2613 topic6 frame
Visualforce css developer guide(by forcetree.com)
Customizing the Appearance and HTML Output of Visualforce Pages
David Weliver
Basic HTML/CSS
Html css
Html Css Mistakes
How to create Custom Page Template in WordPress
Ddpz2613 topic6 frame

What's hot (17)

PPTX
HTML, CSS and Java Scripts Basics
DOCX
Tercer trabajo de drapi 02
DOC
Intermediate Web Design.doc
PDF
HTML & CSS 2017
PPTX
Html & CSS
PDF
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
PPT
Html frames
PDF
CSS Best practice
PDF
Not just a pretty (type)face
PPT
Rational HATS and CSS
PPTX
HTML all tags .........its to much helpful for beginners
PDF
Troubleshooting Email Like a Pro
PDF
Efficient, maintainable CSS
PDF
KEY
Getting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
PPTX
PDF
css-tutorial
HTML, CSS and Java Scripts Basics
Tercer trabajo de drapi 02
Intermediate Web Design.doc
HTML & CSS 2017
Html & CSS
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
Html frames
CSS Best practice
Not just a pretty (type)face
Rational HATS and CSS
HTML all tags .........its to much helpful for beginners
Troubleshooting Email Like a Pro
Efficient, maintainable CSS
Getting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
css-tutorial
Ad

Viewers also liked (18)

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

Similar to Website designing company | Cssfounder.com (20)

PPT
Unit 2-CSS & Bootstrap.ppt
PPTX
PPT
ITEC229_Chapter8_new.ppt computer architecture
DOC
Intermediate Web Design.doc
PPT
Chapter 4a cascade style sheet css
PPTX
What is CSS.pptx power point presentation
PDF
GDI Seattle Intermediate HTML and CSS Class 1
KEY
Slow kinda sucks
PDF
CSS Foundations, pt 1
PDF
Introduction to HTML and CSS
PPTX
properties of css.pptx power pointpresentation
PDF
Introduction to css
PDF
Advanced Web Programming Chapter 8
PDF
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
PPT
Css Founder.com | Cssfounder se
PPT
PPT
css.ppt
PPT
HTML Web Devlopment presentation css.ppt
PDF
CSS Introduction
Unit 2-CSS & Bootstrap.ppt
ITEC229_Chapter8_new.ppt computer architecture
Intermediate Web Design.doc
Chapter 4a cascade style sheet css
What is CSS.pptx power point presentation
GDI Seattle Intermediate HTML and CSS Class 1
Slow kinda sucks
CSS Foundations, pt 1
Introduction to HTML and CSS
properties of css.pptx power pointpresentation
Introduction to css
Advanced Web Programming Chapter 8
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Css Founder.com | Cssfounder se
css.ppt
HTML Web Devlopment presentation css.ppt
CSS Introduction

More from Css Founder (20)

PPT
Cssfounder.com website designing company in delhi
PDF
Internet technology and web designing
PPT
Web page design-cssfounder
PPT
Tech dev cssfounder.com
PPT
Digital india-cssfounder.com
PPT
Poverty inindia CssFounder.com
PPT
Poverty in india Cssfounder.com
PPT
Website designing company in delhi e commerce
PPT
Website designing company_in_delhi blogging
PPT
Website designing company in delhi blog powerpoint
PPT
Website designing company_in_delhi e-business
PPTX
Website designing company_in_mumbai_digital india
PPT
Website designing company_in_delhi_digitization practices
PPT
Website designing company_in_delhi_education
PPT
Website designing company_in_delhi_education system
PPT
Website designing company_in_delhi_phpwebdevelopment
PPT
Website development process
PPT
Webdesign website development_company_surat
PPT
Internet website designing_company_in_delhi
PPT
Website designing company in delhi
Cssfounder.com website designing company in delhi
Internet technology and web designing
Web page design-cssfounder
Tech dev cssfounder.com
Digital india-cssfounder.com
Poverty inindia CssFounder.com
Poverty in india Cssfounder.com
Website designing company in delhi e commerce
Website designing company_in_delhi blogging
Website designing company in delhi blog powerpoint
Website designing company_in_delhi e-business
Website designing company_in_mumbai_digital india
Website designing company_in_delhi_digitization practices
Website designing company_in_delhi_education
Website designing company_in_delhi_education system
Website designing company_in_delhi_phpwebdevelopment
Website development process
Webdesign website development_company_surat
Internet website designing_company_in_delhi
Website designing company in delhi

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
1. Introduction to Computer Programming.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Getting Started with Data Integration: FME Form 101
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
A Presentation on Artificial Intelligence
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Tartificialntelligence_presentation.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Encapsulation theory and applications.pdf
Assigned Numbers - 2025 - Bluetooth® Document
1. Introduction to Computer Programming.pptx
Encapsulation_ Review paper, used for researhc scholars
Heart disease approach using modified random forest and particle swarm optimi...
Unlocking AI with Model Context Protocol (MCP)
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Univ-Connecticut-ChatGPT-Presentaion.pdf
Getting Started with Data Integration: FME Form 101
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Programs and apps: productivity, graphics, security and other tools
A comparative analysis of optical character recognition models for extracting...
cloud_computing_Infrastucture_as_cloud_p
A Presentation on Artificial Intelligence
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TLE Review Electricity (Electricity).pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Tartificialntelligence_presentation.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

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