KEMBAR78
New Css style | PPT
CSS: Separating Design and
Content


Global Information Internship
Program from BUDNET
www.budnetdesign.com
Assumptions
ï‚Ą   You know HTML
ï‚Ą   You do not know CSS
ï‚Ą   You care about aesthetics and
    function
ï‚Ą   You have 50 minutes to kill
What We’ll Do
ï‚Ą   What is CSS?
ï‚Ą   View some code and talk basics
ï‚Ą   Why use CSS?
    ïŹ Advantages to Workflow
    ïŹ Cost Savings

ï‚Ą   Implementations
ï‚Ą   Resources
What are Cascading Style Sheets?
ï‚Ą   Created by Hakon Wium Lie of MIT
    in 1994
ï‚Ą   Has become the W3C standard for
    controlling visual presentation of
    web pages
ï‚Ą   Separates design elements from
    structural logic
ï‚Ą   You get control and maintain the
    integrity of your data
Let’s See Some Code
ï‚Ą   Sample Style sheet
ï‚Ą   Rule Structure
Selectors
ï‚Ą   Element Selectors – (refer to
    HTML tags)
    H1 {color: purple;}
    H1, H2, P {color: purple;}
ï‚Ą   Contextual – (refer to HTML, but in
    context)
    LI B {color: purple;}
Selectors
ï‚Ą   Class Selectors
    <H1 CLASS=“warning”>Danger!</H1>
    <P CLASS=“warning”>Be careful
</P>
    

.
    In your HTML code -
    H1.warning {color: red;}
            OR to an entire class

    .warning {color:red;}
Applying CSS to HTML
    ï‚Ą   Style rules can be applied in 3 ways:

Inline Styles: sheets:
Embedded style sheets:
External style
<H1 STYLE=“color: blue; font-size: 20pt;”>A large purple
<HTML><HEAD><TITLE>Stylin’!</TITLE>
<HEAD>
Heading</H1>
<STYLE TYPE=“text/css”>
<LINK REL=stylesheet” TYPE=“text/css”
       H1 {color: purple;}
HREF=“styles/mystyles.css”>
For individual elementscolor: gray;}
       P {font-size: 10pt; using the STYLE attribute
</HEAD>
</STYLE>
</HEAD> “separation” of style and content.
This is true


Keeping all your styles in an external document is
</HTML>
simpler
Why CSS?
ï‚Ą   Advantages to Workflow
ï‚Ą   Cost Savings
ï‚Ą   You WILL Be Cooler
Advantages of CSS
ï‚Ą   Workflow
    ïŹ Faster downloads
    ïŹ Streamlined site maintenance

    ïŹ Global control of design attributes

    ïŹ Precise control (Advanced)
      ï‚Ą Positioning
      ï‚Ą Fluid layouts
Advantages of CSS - Cost Savings
ï‚Ą   Cost Savings
    ïŹ Reduced     Bandwidth Costs
      ï‚Ą   One style sheet called and cached
    ïŹ Higher    Search Engine Rankings
      ï‚Ą Cleaner code is easier for search engines
        to index
      ï‚Ą Greater density of indexable content
Advantages of CSS - Cost Savings

ï‚Ą   Faster download = better usability
    ïŹ   Web usability redesign can increase the
        sales/conversion rate by 100% (source: Jakob
        Nielson)
    ïŹ   CSS requires less code
    ïŹ   Tables require spacer images
    ïŹ   Entire table has to render before content
    ïŹ   CSS can control the order that elements
        download (content before images)
Advantages of CSS - Cost Savings

ï‚Ą   Increased Reach
    ïŹ CSS   website is compatible w/ many
      different devices
    ïŹ In 2008 an est. 58 Million PDA’s will be
      sold (Source: eTForecast.com)
    ïŹ 1/3 of the world’s population will own a
      wireless device by 2010
Implementations
ï‚Ą   Apply to HTML pages
ï‚Ą   Apply to dynamic data
    ïŹ Format   or style XML
ï‚Ą   Use for layout (this is cool)
    ïŹ See   http://www.csszengarden.com
CSS isn’t perfect (yet)
ï‚Ą   CSS support in browsers is still
    uneven
ï‚Ą   Make sure your CSS properties are
    supported
Resources
ï‚Ą   http://www.csszengarden.com
    ïŹ This   is CSS at its finest
ï‚Ą   http://www.w3.org/Style/CSS/
    ïŹ The    Official CSS Site
ï‚Ą   http://css.maxdesign.com.au/
    ïŹ Australian   firm, very professional
ï‚Ą   http://webmonkey.wired.com/web
    monkey/reference/stylesheet_guide
    ïŹ Where    I learned CSS and Web Design
Come and see me at 3:30pm!
ï‚Ą   “Making Your Web Site More
    Appealing”

New Css style

  • 1.
    CSS: Separating Designand Content Global Information Internship Program from BUDNET www.budnetdesign.com
  • 2.
    Assumptions ï‚Ą You know HTML ï‚Ą You do not know CSS ï‚Ą You care about aesthetics and function ï‚Ą You have 50 minutes to kill
  • 3.
    What We’ll Do ï‚Ą What is CSS? ï‚Ą View some code and talk basics ï‚Ą Why use CSS? ïŹ Advantages to Workflow ïŹ Cost Savings ï‚Ą Implementations ï‚Ą Resources
  • 4.
    What are CascadingStyle Sheets? ï‚Ą Created by Hakon Wium Lie of MIT in 1994 ï‚Ą Has become the W3C standard for controlling visual presentation of web pages ï‚Ą Separates design elements from structural logic ï‚Ą You get control and maintain the integrity of your data
  • 5.
    Let’s See SomeCode ï‚Ą Sample Style sheet ï‚Ą Rule Structure
  • 6.
    Selectors ï‚Ą Element Selectors – (refer to HTML tags) H1 {color: purple;} H1, H2, P {color: purple;} ï‚Ą Contextual – (refer to HTML, but in context) LI B {color: purple;}
  • 7.
    Selectors ï‚Ą Class Selectors <H1 CLASS=“warning”>Danger!</H1> <P CLASS=“warning”>Be careful
</P> 

. In your HTML code - H1.warning {color: red;} OR to an entire class
 .warning {color:red;}
  • 8.
    Applying CSS toHTML ï‚Ą Style rules can be applied in 3 ways: Inline Styles: sheets: Embedded style sheets: External style <H1 STYLE=“color: blue; font-size: 20pt;”>A large purple <HTML><HEAD><TITLE>Stylin’!</TITLE> <HEAD> Heading</H1> <STYLE TYPE=“text/css”> <LINK REL=stylesheet” TYPE=“text/css” H1 {color: purple;} HREF=“styles/mystyles.css”> For individual elementscolor: gray;} P {font-size: 10pt; using the STYLE attribute </HEAD> </STYLE> </HEAD> “separation” of style and content. This is true 
 Keeping all your styles in an external document is </HTML> simpler
  • 9.
    Why CSS? ï‚Ą Advantages to Workflow ï‚Ą Cost Savings ï‚Ą You WILL Be Cooler
  • 10.
    Advantages of CSS ï‚Ą Workflow ïŹ Faster downloads ïŹ Streamlined site maintenance ïŹ Global control of design attributes ïŹ Precise control (Advanced) ï‚Ą Positioning ï‚Ą Fluid layouts
  • 11.
    Advantages of CSS- Cost Savings ï‚Ą Cost Savings ïŹ Reduced Bandwidth Costs ï‚Ą One style sheet called and cached ïŹ Higher Search Engine Rankings ï‚Ą Cleaner code is easier for search engines to index ï‚Ą Greater density of indexable content
  • 12.
    Advantages of CSS- Cost Savings ï‚Ą Faster download = better usability ïŹ Web usability redesign can increase the sales/conversion rate by 100% (source: Jakob Nielson) ïŹ CSS requires less code ïŹ Tables require spacer images ïŹ Entire table has to render before content ïŹ CSS can control the order that elements download (content before images)
  • 13.
    Advantages of CSS- Cost Savings ï‚Ą Increased Reach ïŹ CSS website is compatible w/ many different devices ïŹ In 2008 an est. 58 Million PDA’s will be sold (Source: eTForecast.com) ïŹ 1/3 of the world’s population will own a wireless device by 2010
  • 14.
    Implementations ï‚Ą Apply to HTML pages ï‚Ą Apply to dynamic data ïŹ Format or style XML ï‚Ą Use for layout (this is cool) ïŹ See http://www.csszengarden.com
  • 15.
    CSS isn’t perfect(yet) ï‚Ą CSS support in browsers is still uneven ï‚Ą Make sure your CSS properties are supported
  • 16.
    Resources ï‚Ą http://www.csszengarden.com ïŹ This is CSS at its finest ï‚Ą http://www.w3.org/Style/CSS/ ïŹ The Official CSS Site ï‚Ą http://css.maxdesign.com.au/ ïŹ Australian firm, very professional ï‚Ą http://webmonkey.wired.com/web monkey/reference/stylesheet_guide ïŹ Where I learned CSS and Web Design
  • 17.
    Come and seeme at 3:30pm! ï‚Ą “Making Your Web Site More Appealing”