CSS3 Unleashed: Tips, Tricks and Techniques

Separation of content from presentation has numerous advantages, some of which include: improvements in content accessibility, flexibility and control over presentation, share formatting across multiple pages, and reduce complexity and repetition in the structural content. This is why CSS was developed and all of this is achievable to a certain extend through current level of CSS. However numerous new features will be incorporated in CSS3, empowering web developers to take web design even further.

Although CSS3 specifications are still under development, some of its features have been incorporated in latest web browsers. This has provided web developers with an opportunity to experiment and play with some of the new features well in advance. W3Avenue has compiled a list of resources that will get you up to speed and bring you closer to the cutting edge of CSS development.

New Features & Browser Support

Following resources will help you identify new features and their current level of support in various web browsers:

Download Latest Web Browsers
You may need latest release of more than one of these web browsers to test CSS3 features:

Tips – Introduction To New Features

Following list of resources illustrate basic use of some of the new features in CSS. CSS3 has been divided into various module, we have therefore categorized these resources under their respective module for clarity and reference to official specifications.

Selectors

Selectors are used to select elements in an HTML or XML document, in order to attach (style) properties to them.

Backgrounds and Borders Module

Describes background colors and images and the style of borders. New functionality includes the ability to stretch the background image, to use images for the borders, to round the corners of the box and to add a box shadow outside the border.

  • Multiple Backgrounds
    Explains how to add multiple backgrounds to an element using “background-image” property.
  • Background Size
    Illustrates how to specify the size of the background images using “background-size” property (Opera & WebKit based browsers).
  • Gradient Borders & Rounded Corners
    Illustrates adding gradient borders using “border-color” (Mozila based browser) and creating rounded corners by using “border-*-radius” property (Mozila & WebKit based browsers).
  • Border Radius
    Explores “border-radius” property(Mozila & WebKit based browsers).
  • Using Images For Border
    Illustrates using images as border using “border-image” property (Mozila & WebKit based browsers).
  • Shadow Effect on Elements
    Illustrates adding shadow effects on elements using “box-shadow” property (Mozila & WebKit based browsers).
Multi-Column Layout Module

Multi-Column Layout proposes new properties to flow content into flexibly-defined columns.

  • Multiple Columns
    Illustrate how to create multiple columns using “column-width, column-gap, column-count, column-rule” properties (Mozila & WebKit based browsers).
  • Multiple Columns Using CSS3
    Introduction to CSS3 multiple columns feature.
Color Module

Specifies color related aspects of CSS, including transparency and the various notations for the <color> value type.

Web Fonts Module

Provides syntax for describing fonts: their name, their style, which characters they cover and also where to download them from. Adding such descriptions to a style sheet allows a designer to be more precise in font selection and, if the browser supports font downloading, to use fonts that people are unlikely to have installed, including fonts created by the designer.

Text Module

Defines properties for text manipulation and specifies their processing model. It covers line breaking, justification and alignment, white space handling, text decoration and text transformation.

  • Word Wrap
    Illustrates how words can be broken and wrap onto the next line using “word-wrap” property.
  • Shadow Effects
    Illustrates how to add shadow to text using “text-shadow” property (Mozila & WebKit based browsers). (NOTE: This feature was part of CSS2 specifications, but was never implemented by any browser except Safari, and is now finally being implemented along with other CSS3 features)
Basic User Interface Module

Contains features for styling some interactive, dynamic aspects of Web pages: the look of form elements in their various states and more cursors and colors to describe GUIs that blend well with the user’s desktop environment.

  • Resizing, Box Sizing & Outline
    Introduction to User Interface using “resize“, “box-sizing“, “outline“, and “outline-offset” properties.
  • Box Sizing
    Illustrates how “box-sizing” property works and why it is useful.
  • The CSS3 ‘box-sizing’ Concept
    Explains ‘box-sizing’ property which brings the opportunity for the user to choose between several box models.
Transitions Module

Defines a property to animate the transitions between pseudo-classes. During a given delay, certain property values gradually change from the old value to the new, rather than instantaneously, as in level 2.

  • Transition Timing Functions
    Investigates the “transition-duration” and “transition-timing-function” properties which control, respectively, the duration and speed at which a transition is carried out(WebKit based browsers).

Tricks – Fake It Till You Make It!

After exploring some of the new features, you may want to use them in your projects right away. Unfortunately it will be a while before web developers can safely use CSS3 in their projects. But here is a list of various attempts/tricks mostly using JavaScript to achieve some of these effects today.

Techniques – Glimpse Into The Future

Following list of resources demonstrate various techniques; exposing what you will be able to achieve using new features in CSS.

Additional Resources, Tools & Utilities

Here is a list of even more resources to feed your appetite for CSS3 related information.

Articles
Sites
Tools & Utilities
  • CSS 3 Cheat Sheet
    Downloadable PDF file containing complete listing of all the properties, selectors types and allowed values in the current CSS 3 specification from the W3C.
  • Modernizr
    Modernizr is a small and simple JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML 5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies.
  • MooModernizr (MooTools 1.2)
    Detects CCS3 capabilities in browsers & provides tests for a variety of CSS3/HTML features.
  • Sizzle JavaScript Selector Library
    A pure JavaScript CSS selector engine designed to be easily dropped in to a host library. Sizzle supports virtually all CSS3 selectors – this even includes some parts that are infrequently implemented such as escaped selectors (”.foo\\+bar”), Unicode selectors, and results returned in document order.
  • SelectORacle
    Online tool that provides explanation of CSS2 and CSS3 selectors. Simply provide it with some selectors and it will return descriptions of what the selectors will match.
  • YUI Selector Utility
    The YUI Selector Utility brings CSS3 Selector syntax to JavaScript, providing a compact shorthand for collecting, filtering, and testing HTMLElements.

Please feel free to suggest any addition, correction or updates in your comments. You may also want to look at:

Stay Updated

If you found this post useful, consider subscribing to our RSS Feed! You can also stay updated by following us on Twitter, becoming a fan on Facebook or by subscribing to our FriendFeed.

Bookmark / Share This Post With Your Friends

Bookmark and Share

Reader Comments

10 Responses to “CSS3 Unleashed: Tips, Tricks and Techniques”
  1. Binoj xavier says:

    Thanks for this Information. Cheers!

  2. A nice collection for learning some CSS3 and I’m glad to see some of our articles got in there too. Some of these sources I hadn’t come across before so some more reading for me too! :)

    Thanks for sharing and keep up the great work!

    Alex | @ZenElements

  3. Veera says:

    Useful collection. As next generation HTML and CSS is getting the speed, tips and tricks on using CSS3 will really helps the developers.

  4. Hon tap says:

    Good list. Thank you very much.

  5. Ryan says:

    Great list guys some really useful resources in there. Thanks for trackback BTW!

  6. sasdaman says:

    Great compilation of CSS3 resources. Will look to develop using CSS3 soon.

  7. z.Yleo77 says:

    it’s a useful tutorial… very good.

  8. Marco says:

    Great roundup with awesome articles, well done.

    I’ve writting a couple of good CSS3 articles too, you might want to check them.

    Keep up the great work!

  9. I can’t wait till all browsers will have this enabled and then I will feel like I can use css3 more often.

  10. Very helpful collection of CSS3-stuff! If you want some more don’t miss the following two CSS3-Tutorials Website-Navigation ( based on Border-Radius ) or Sliding Navigation without JavaScript ( based on the CSS3-Animation feature )!

Leave Comment

 
 

Stay Updated, Subscribe to RSS Feed

 
PSD to Xhtml WooThemes - WordPress themes for everyone
 
 

Blogroll

 

Sponsored Links