• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
IE7 & Newly Supported Features of CSS
 

IE7 & Newly Supported Features of CSS

on

  • 5,403 views

This presentation covers some of the newly support features of CSS in IE7, mainly: advanced selectors and properties/values. It also addresses how these changes affect our own techniques in the way ...

This presentation covers some of the newly support features of CSS in IE7, mainly: advanced selectors and properties/values. It also addresses how these changes affect our own techniques in the way websites are laid-out.

Statistics

Views

Total Views
5,403
Views on SlideShare
5,399
Embed Views
4

Actions

Likes
7
Downloads
0
Comments
1

2 Embeds 4

http://www.slideshare.net 2
http://www.mashme.tv 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Good info. Lighten color of text on 'Method' comparison boxes: Too 'dim'.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    IE7 & Newly Supported Features of CSS IE7 & Newly Supported Features of CSS Presentation Transcript

    • IE7 & Newly Supported Features of CSS
    • Internet Explorer 7 • Number of behavior changes (bug fixes or new features) in IE7: over 200 • Added alpha channel PNG support • Enable :hover on all elements not just on <a> • Background-attachment: fixed works on all elements
    • Internet Explorer 7 Added support for the following CSS 2.1 features • Min/max widths and heights • Transparent borders • Fixed positioning • Advanced Selectors: first-child, adjacent, attribute, child
    • CSS Selectors What is a selector anyway? • Selectors “select” elements on a web page which follow specific patterns. If the pattern matches, then the declarations within that rule are applied. • p { color: #f00; }
    • CSS Selectors Widely supported: • Universal * • Type h1 • Class .info • Id #header • Descendant div p • link pseudo-classes a:link, a:visited
    • CSS Selectors Poorly supported (before IE7) • child • first-child • adjacent sibling • attribute
    • Advanced Selectors child selector • div > p • Matches any P element that is a child of a DIV element.
    • Advanced Selectors child selector example <div> <strong>Text one</strong> <p><strong>Text two</strong></p> </div> Method 1: Method 2: div strong { color:#f00; } div > strong { color:#f00; } div p strong { color:#000; }
    • Advanced Selectors first-child selector • p:first-child • Matches element P when P is the first child of its parent
    • Advanced Selectors first-child selector example Method 1: ul li { border-top: 1px dotted #000; } ul li.firstline { border-top: none; } Border removal Method 2: ul li { border-top: 1px dotted #000; } ul li:first-child { border-top: none; }
    • Advanced Selectors adjacent sibling selector • p+p • Matches any P element immediately preceded by a sibling element P
    • Advanced Selectors adjacent sibling selector example Lead-in paragraphs Method 1: p.intro { font-size: 2em; } Method 2: h1 + p { font-size: 2em; }
    • Advanced Selectors attribute selector • img[alt] • Matches any IMG element that has an ALT attribute, regardless of its value
    • Advanced Selectors attribute selector example Input borders Method 1: Method 2: input.text { input[type=text] { border: 1px solid #888; border: 1px solid #888; border-bottom-color: #DDD; border-bottom-color: #DDD; border-right-color: #DDD; border-right-color: #DDD; } }
    • New Properties and Values • min-width and max-width • min-height and max-height • fixed positioning – Fixed boxes do not move when the document is scrolled
    • When can we start using this stuff? Depends on Depends on the project methodology
    • What methodology? Graceful Progressive degradation enhancement
    • So, what’s the difference? These two concepts influence decision-making about browser support. Because they reflect different priorities, they frame the support discussion differently. Graceful degradation prioritizes presentation, and permits less widely-used browsers to receive less (and give less to the user). Progressive enhancement puts content at the center, and allows most browsers to receive more (and show more to the user). While close in meaning, progressive enhancement is a healthier and more forward- looking approach. [Yahoo]