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.
2. 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
3. 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
4. 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; }
5. CSS Selectors
Widely supported:
• Universal *
• Type h1
• Class .info
• Id #header
• Descendant div p
• link pseudo-classes a:link, a:visited
15. 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
16. When can we start using this stuff?
Depends on Depends on
the project methodology
18. 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]