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 (14)

PPTX
Website designing company in noida
PPT
Css Founder.com | Cssfounder Company
PPT
Website designing company in noida
PPTX
Website designing company in gudgaon
PPT
Website designing company in delhi
PPT
Website designing compay in noida
PPT
Css Founder.com | Cssfounder Net
PPT
Css Founder.com | Cssfounder se
PPT
Website designing company in delhi ncr
PPT
Website designing company in mumbai
PPT
Website designing company in gurgaon
PPT
Website designing company in faridabad
PPT
Website designing company in delhi
PPT
Website designing company | Cssfounder.com
Website designing company in noida
Css Founder.com | Cssfounder Company
Website designing company in noida
Website designing company in gudgaon
Website designing company in delhi
Website designing compay in noida
Css Founder.com | Cssfounder Net
Css Founder.com | Cssfounder se
Website designing company in delhi ncr
Website designing company in mumbai
Website designing company in gurgaon
Website designing company in faridabad
Website designing company in delhi
Website designing company | Cssfounder.com
Ad

Similar to Css Founder.com | Cssfounder Org (20)

PPT
Css Founder.com | Cssfounder Company
PPT
Css Founder.com | Cssfounder Company
PPT
CSS is the language we use to style a Web page. CSS stands for Cascading Styl...
PDF
ch-hguygureehuvnvdfduyertiuhrnhduuyfjh3.pdf
PPTX
uptu web technology unit 2 Css
PDF
4. Web Technology CSS Basics-1
PDF
Introduction to CSS3
PDF
2 introduction css
PPT
Introduction to css by programmerblog.net
PDF
Chapter 3 - CSS.pdf
PDF
cdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdf
PPT
Cascading Style Sheet - CSS
PPT
cascading style sheet in web design .ppt
PPTX
basic programming language AND HTML CSS JAVApdf
PPT
Css class-01
PPT
Cascading style sheet
PPTX
CSS Basics (Cascading Style Sheet)
Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder Company
CSS is the language we use to style a Web page. CSS stands for Cascading Styl...
ch-hguygureehuvnvdfduyertiuhrnhduuyfjh3.pdf
uptu web technology unit 2 Css
4. Web Technology CSS Basics-1
Introduction to CSS3
2 introduction css
Introduction to css by programmerblog.net
Chapter 3 - CSS.pdf
cdocumentsandsettingsstudentdesktopnewfolderhtmlcss-100220030010-phpapp01.pdf
Cascading Style Sheet - CSS
cascading style sheet in web design .ppt
basic programming language AND HTML CSS JAVApdf
Css class-01
Cascading style sheet
CSS Basics (Cascading Style Sheet)

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)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Sensors and Actuators in IoT Systems using pdf
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Modernizing your data center with Dell and AMD
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
GamePlan Trading System Review: Professional Trader's Honest Take
20250228 LYD VKU AI Blended-Learning.pptx
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Spectral efficient network and resource selection model in 5G networks
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Advanced methodologies resolving dimensionality complications for autism neur...
Chapter 3 Spatial Domain Image Processing.pdf
MYSQL Presentation for SQL database connectivity
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Sensors and Actuators in IoT Systems using pdf
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Modernizing your data center with Dell and AMD
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Bridging biosciences and deep learning for revolutionary discoveries: a compr...

Css Founder.com | Cssfounder Org

  • 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