Smashing Magazine - we smash you with the information that will make your life easier. really.

Mastering CSS, Part 2: Advanced Techniques and Tools

Advertisement

CSS is one of the most basic building blocks of modern web design. It creates the structure and style that surrounds your content and is capable of making your site a joy to use or a pain in the neck. Mastering CSS is one of the most important things a web designer can do, and has really become an essential criteria for being a successful designer.

In Part 1: Styling Design Elements we covered the basics of web design with CSS. In Part 2 we’re offering up some more advanced techniques and effects you can achieve with CSS. Everything from creating your own online apps (like calendars) to styling web pages for use with the iPhone to some basics of working with CSS3 is covered here.

Small-book in Mastering CSS, Part 2: Advanced Techniques and Tools

We also discuss CSS coding techniques in our upcoming Smashing Book ($23.90 $29.90, available worldwide). Pre-order now and save 20% off the price!

[By the way, did you know there is a brand new Smashing Wordpress Book? Push WordPress past its limits!]

1. Calendars, Lists, Tables, and Timelines

CSS can be used to build calendars, timelines, and even “tables” (or charts). The tutorials below sometimes use CSS combined with various programming languages.

CSS/jQuery Sequential List
Have you ever had to manually code something that is sequential? Didn’t you find it annonying? Well, here is a simple solution for you. This tutorial will show you how to use jQuery to add a sequent of CSS classes to create a graphical list.

Steps2 in Mastering CSS, Part 2: Advanced Techniques and Tools

Date displays with sprites
This tutorial explains how to achieve an original date display using CSS sprites. A clever technique. An alternative solution (using the transform property in CSS).

Date in Mastering CSS, Part 2: Advanced Techniques and Tools

Pure CSS Timeline
A great tutorial for creating a clean-looking timeline for your site using straightforward CSS and HTML markup.

Timeline in Mastering CSS, Part 2: Advanced Techniques and Tools

A CSS-based Timeline
Another tutorial for creating a timeline with CSS.

28 in Mastering CSS, Part 2: Advanced Techniques and Tools

iCal-like Calendar (CSS+jQuery)
A great tutorial for creating a dynamic calendar resembling the iCal application.

29 in Mastering CSS, Part 2: Advanced Techniques and Tools

Build a Calendar Using PHP, XHTML, and CSS Example
A simple tutorial for creating a dynamic online calendar.

115 in Mastering CSS, Part 2: Advanced Techniques and Tools

CSS: Menu List Design
This is a quick CSS tutorial to show you how to create a menu list using either the CSS border style or a background image. The trick is to apply a bottom border to the li element, then use the absolute position property to shift the nested elements down to cover the border.

Menulist in Mastering CSS, Part 2: Advanced Techniques and Tools

Pure CSS Scrollable Table with Fixed Header
This tutorial shows how to use CSS to allow scrolling within an HTML table with a header.

18 in Mastering CSS, Part 2: Advanced Techniques and Tools

Date Badges and Comment Bubbles for Your Blog
“One of the things you run into when your blog becomes bigger, is that you need to cram more info into less space, to make it possible to display all the information you want to show. One of the things I did to do that is add an icon for the date, and then a bubble over that with the number of comments in it.”

Badges in Mastering CSS, Part 2: Advanced Techniques and Tools

Styling tables with CSS
A simple tutorial for styling HTML tables entirely with CSS.

24 in Mastering CSS, Part 2: Advanced Techniques and Tools

2. iPhone CSS Techniques

iPhone has revolutionized the way many people view the Web. Mobile web browsers before that were often clunky and were primarily used for quickly looking things up online, not for general browsing. But now, the iPhone and similar new mobiles devices make browsing online while on the go much easier. It makes sense to design with the iPhone in mind now. Below are some resources for creating CSS specifically for the iPhone.

iPhone Application UI Design Patterns
The iPhone is one big constraint — no keyboard, small screen, few buttons — so designing applications for the iPhone is an exercise in building smart, simple software. There are three main interaction concepts that correspond to three different types of View Controllers: Navigation Controllers, Tab Bar Controllers, Modal View Controllers and Table View Controllers respectfully. These are the building blocks for crafting iPhone applications.

Iphone in Mastering CSS, Part 2: Advanced Techniques and Tools

Serving iPhone Specific CSS
This article covers a couple of different ways to serve an iPhone specific CSS file, including an easy way.

103 in Mastering CSS, Part 2: Advanced Techniques and Tools

Safari on iPhone Graphics, Media, and Visual Effects Coding How-To’s
This is a complete guide from Apple on working with Safari on the iPhone, including information on graphics, media and more.

10 in Mastering CSS, Part 2: Advanced Techniques and Tools

Web Development for the iPhone
Another guide to developing sites specifically for the iPhone.

How to Get Started with iPhone Dev
This article is an introduction to the various ways of getting content and applications onto the iPhone. It is by no means a full guide, but hopes to point you in the right direction and give you an overview of what is involved in the process.

Iphone2 in Mastering CSS, Part 2: Advanced Techniques and Tools

6 Tips to Optimize Your Website for iPhone
Ordinary websites are receiving more traffic from mobile devices than ever before. Even if you have no immediate plans to serve a microsite to your iPhone visitors, there are steps you can take to make your current website more iPhone friendly. In this article you will explore several techniques you can perform to present optimized content for these users.

jPint
jPint is a set of libraries designed by Journyx to allow developers to build web-based applications that look and feel as much like native iPhone apps as possible, while retaining the ability for those apps to be used by people who, for whatever reason, don’t actually have an iPhone.

43 iPhone Development Resources
Programming for the iPhone is still pretty new. It might be a bit tougher to find iPhone developer resources, but we found a bunch that will get you through building any iPhone app you might be starting on. Check out our list of our favorite developer books, blogs, podcasts, screencasts, open-source libraries, communities, forums, conferences, training, and more.

3. Form and Search Techniques

Creating user-friendly forms, login screen, and search boxes is an important bit of design. Whether you just want to make your forms a bit more aesthetically pleasing or if you want to increase usability by changing the appearance of standard forms, the resources below can help.

Create Custom Search Bars with Image Replacement using CSS
The incorporation of custom elements, like search boxes, can set your website apart from its competitors. This tutorial covers how to add a custom search bar to your site, though it’s not cross-browser compatible.

114 in Mastering CSS, Part 2: Advanced Techniques and Tools

Fancy Form Design Using CSS
This article covers form styling with CSS.

22 in Mastering CSS, Part 2: Advanced Techniques and Tools

Designing The Search Submit Button – A CSS Cross-Browser Compatible Solution
Learn how to create a custom image like a magnifying glass, or the word ‘GO’ in a circle, instead of the default search submit button.

Sbox in Mastering CSS, Part 2: Advanced Techniques and Tools

Making Forms Convert Through Awesome Inline Labels
This tutorial shows how to increase form follow-through by using better inline labels.

71 in Mastering CSS, Part 2: Advanced Techniques and Tools

CSSG Collections: Web Forms
This is a collection of uniquely designed web forms available to use for free.

47 in Mastering CSS, Part 2: Advanced Techniques and Tools

45+ Really Essential Free HTML [Form] Enhancements
This collection of free form enhancements covers a number of CSS techniques.

minimal form layout/quick css tricks
This post gives some quick CSS tricks for minimalist form layout and design.

107 in Mastering CSS, Part 2: Advanced Techniques and Tools

4. Visualization Techniques

Creating visual representations of data can really set your website apart. Whether these are just tables clarifying the relationships between data sets or even things as simple as loaders and progress bars, creating an effective visualization of your data improves user experience and increases the likelihood your visitors will comprehend your site’s content.

Simple CSS shiny progress bar technique
This post covers a simple method for creating a progress bar with a couple of DIVS and an image that is colored with CSS.

111 in Mastering CSS, Part 2: Advanced Techniques and Tools

20+ CSS Data Visualization Techniques
This post gives an excellent rundown of more than twenty data visualization techniques using CSS.

49 in Mastering CSS, Part 2: Advanced Techniques and Tools

Accessible Data Visualization with Web Standards
This article from A List Apart gives a rundown on creating standards-compliant data visualizations using CSS and XHTML.

Alistapart-bar-chart in Mastering CSS, Part 2: Advanced Techniques and Tools

5. Other Handy Techniques and Tips

Here are a handful of other CSS techniques for creating things like transparency and realistic hover effects.

CSS Star Rating Part Deux
This tutorial builds off a former tutorial and shows how to create star ratings that will show ratings that aren’t an exact integer (like 3.5).

106 in Mastering CSS, Part 2: Advanced Techniques and Tools

Two Techniques for CSS Transparency
This tutorial shows two techniques for creating transparency with CSS, including one that uses CSS3 and a lower-tech version.

79 in Mastering CSS, Part 2: Advanced Techniques and Tools

Placing a CSS background image horizontally right on an h2 using a span element
Learn how to add a background image to a heading 2 element and have it perfectly aligned on the right side of the text while keeping the default block element behavior.

Plac in Mastering CSS, Part 2: Advanced Techniques and Tools

Snazzy Pullquotes for Your Blog
Learn how to add a background image to a heading 2 element and have it perfectly aligned on the right side of the text while keeping the default block element behavior.

Quote in Mastering CSS, Part 2: Advanced Techniques and Tools

Cross-browser semi-transparent backgrounds
Here’s a comprehensive tutorial for creating semi-transparent backgrounds with CSS that includes a hack to make it work with IE6.

105 in Mastering CSS, Part 2: Advanced Techniques and Tools

How to: CSS Large Background
This tutorial provides various CSS examples on how you can create a large background site using either a single or double images.

Bg in Mastering CSS, Part 2: Advanced Techniques and Tools

Creating Thumbnails Using the CSS Clip Property
The clip property in CSS is useful for clipping images and creating thumbnails without having to create additional files. This trick can be used to create square thumbnails, or to create other kinds of thumbnails without actually duplicating files on the server. Here is the rundown.

Th in Mastering CSS, Part 2: Advanced Techniques and Tools

CSS image replacement with… images!
Sites with dark backgrounds lend themselves well to white or light-colored logos. The result can be nice on screen, but if the site is printed, there can be undesirable results: either the logo doesn’t show up, or if it was saved as a transparent gif, it shows with jagged pixelated edges where the edges are meant to blend in with a dark background color. This article present a method that uses a print-optimized image in the html, and CSS to swap out the image with a screen-friendly one.

Text overlay with CSS
The idea is just to overlay some text over an image, but as blocks that stick out from the left with an even amount of padding all the way around the variable-length text.

Overlay in Mastering CSS, Part 2: Advanced Techniques and Tools

Internet Explorer & CSS issues
This article covers a variety of techniques for fixing issues with CSS rendering in Internet Explorer.

73 in Mastering CSS, Part 2: Advanced Techniques and Tools

Disabling Deprecated HTML Using CSS
This tutorial shows how to disable any deprecated HTML your clients might try to use when updating their site by using CSS.

102 in Mastering CSS, Part 2: Advanced Techniques and Tools

6. CSS3 Techniques

Below are a variety of techniques specifically for CSS3. They include information on mixing CSS3 with jQuery, using shadow effects and gradients, and even some collections that cover multiple techniques and tutorials.

Mixing CSS3 and jQuery
A thorough roundup of techniques for combining CSS3 and jQuery.

CSS Gradients in Action
A post covering examples of CSS gradients, with the code included.

26 in Mastering CSS, Part 2: Advanced Techniques and Tools

The Shadow Effect In CSS3
An overview of using CSS3’s native shadow effect.

Go Beyond Web-Safe Fonts with CSS3
Design your typography around any of the variety of fonts available using a new CSS3 technique.

CSS3 Exciting Functions and Features: 30+ Useful Tutorials
A great collection of CSS3 tutorials to do just about anything.

63 in Mastering CSS, Part 2: Advanced Techniques and Tools

7. CSS Tools

The tools listed here can make your CSS better, faster, and more efficient.

SlickMap CSS – A Visual Sitemapping Tool for Web Developers
A tool to create a styled sitemap from a basic HTML unordered list.

Sitemap in Mastering CSS, Part 2: Advanced Techniques and Tools

Phoenix : Add-ons for Firefox
Phoenix is a Firefox add-on editor that lets you work on CSS, HTML, and JavaScript code, including testing. It also tells you how many CSS or JS files are loaded into a page, along with their size, and lets you control those files.

1 in Mastering CSS, Part 2: Advanced Techniques and Tools

Juicer – a CSS and JavaScript packaging tool
This app will combine your multiple CSS or JS files into a single file, reducing HTML requests and speeding up load times.

2 in Mastering CSS, Part 2: Advanced Techniques and Tools

Gridmaker v3
A simple online grid-design app.

6 in Mastering CSS, Part 2: Advanced Techniques and Tools

Codetech Firefox Extension
Get the feel of Dreamweaver in a Firefox extension. Edit your documents right next to your web pages as you surf.

Codetech in Mastering CSS, Part 2: Advanced Techniques and Tools

Boks – a visual grid editor
Boks is an AIR application (so it works on Windows, Mac and Linux) that provides a User Interface for Blueprint CSS’s framework. It’s been designed for those who think the Grid System is good but never really took the time to give it love. It handles grid configuration, baseline rhythm pimpin’, CSS (with or without compression) and grid.png export and HTML layout.

Boks in Mastering CSS, Part 2: Advanced Techniques and Tools

Modernizr
Modernizr lets you create if-statements in your CSS with an intuitive syntax.

CSS Vertical Rhythm Generator
This tool will help you compute CSS that has a consistent vertical rhythm. If you are not sure what this is all about check out this article about vertical measure.

Typeselect – Selectable text replacement
By leveraging typeface.js, jQuery, the canvas, toDataURL, CSS background properties and real overlayed text, Type Select is able to combine custom fonts with your browser’s native text selection funcationality. You can now interact with beautifully rendered typefaces just like you do with normal text. Drawbacks: no support for :hover or line breaks, text is not selectable in IE.

Typesel in Mastering CSS, Part 2: Advanced Techniques and Tools

CSS Prism
Enter the URL of any CSS file to view and modify its color spectrum. You can use CSS Prism bookmarklet to view and modify the color spectrum from any website.

Cssprism in Mastering CSS, Part 2: Advanced Techniques and Tools

Compress PHP, CSS, JavaScript(JS) & Optimize website performance.
This articles gives a good overview of GZip compression.

8. More Articles and Resources

The articles below offer up some great additional resources for working with CSS. They include hacks, creating interactive designs with CSS and jQuery, and a collection of CSS tricks for working with WordPress, among others.

Interactive Webdesign with CSS and jQuery
A roundup of really great CSS and jQuery techniques from all over the web for improving your website’s UI.

50 in Mastering CSS, Part 2: Advanced Techniques and Tools

My Top Ten CSS Tricks
A rundown of some excellent CSS techniques and tips.

Different Ways To Format CSS
This post will focus on the different ways to format CSS, which differs from the different ways to organize CSS. Definitely related concepts, but organization has more to do with how things are grouped and ordered while formatting has to do with spacing and indenting.

CSS Sprites are Stupid — Let’s Use Archives Instead!
An article covering why using archives is better than CSS sprites.

10 astonishing CSS hacks and techniques
Cover 10 cross-browser CSS techniques and hacks for creating better websites.

7 tiny CSS tricks you’ll always need for a WordPress theme.
A roundup of essential CSS tricks and techiques specific to WordPress design and development.

96 in Mastering CSS, Part 2: Advanced Techniques and Tools

15 Effective Tips and Tricks from the Masters of CSS
A roundup of advice from some of the masters of CSS.

15 in Mastering CSS, Part 2: Advanced Techniques and Tools

21 Stylish CSS/jQuery Solutions To Beautify Your Web Designs
A collection of CSS and jQuery techniques to make your websites more aesthetically pleasing.

52 in Mastering CSS, Part 2: Advanced Techniques and Tools

CSS: A tribute to selectors
A great article about CSS selectors.

54 in Mastering CSS, Part 2: Advanced Techniques and Tools

10 CSS properties that ‘were’ impossible to implement in IE6
This post covers ten CSS techniques that were supposedly impossible to implement in IE6, as well as information on how to make them work.

Background Images and CSS in HTML Email
Some tips on using background images in HTML email.

80 in Mastering CSS, Part 2: Advanced Techniques and Tools

About the author

Cameron Chapman is a professional Web and graphic designer with over 6 years of experience. She also writes for a number of blogs, including her own, Cameron Chapman On Writing. She’s also the author of the forthcoming book Internet Famous.

Small-book in Mastering CSS, Part 2: Advanced Techniques and Tools

We also discuss CSS coding techniques in our upcoming Smashing Book ($23.90 $29.90, available worldwide). Pre-order now and save 20% off the price!

Cameron Chapman is a professional Web and graphic designer with over 6 years of experience. She writes for a number of blogs, including her own, Cameron Chapman On Writing. She’s also the author of Internet Famous: A Practical Guide to Becoming an Online Celebrity.

Post Rating
1 Star2 Stars3 Stars4 Stars5 Stars (No votes yet)
Loading ... Loading ...

Tags:

Advertising
  1. 1
    yabibo
    August 10th, 2009 4:44 am

    hi nice tutorial

  2. 2
    Andrew
    August 10th, 2009 4:45 am

    Great post! Lots of resources.

  3. 3
    Andrew
    August 10th, 2009 4:45 am

    Great post, lots of resources! Thanks!

  4. 4
    iamkreative
    August 10th, 2009 5:01 am

    good stuff, really good resources.

  5. 5
    Oliver
    August 10th, 2009 5:05 am

    Great!

  6. 6
    indigo
    August 10th, 2009 5:06 am

    Awesome article. thanks Cameron.

  7. 7
    Hirvesh
    August 10th, 2009 5:07 am

    Great post, with recently released tools!

  8. 8
    Lars
    August 10th, 2009 5:24 am

    Thanks for featuring tripwire magazine articles as part of this great round-up of css resources! There are many hours of new CSS goodies waiting for me here ;)

  9. 9
    boro
    August 10th, 2009 5:28 am

    in
    How to: CSS Large Background
    all the links point to the previous article. could you please fix this?

    Thanks!

    (SM) Thanks, the link was updated. Sorry for inconvenience.

  10. 10
    Eri
    August 10th, 2009 5:47 am

    Sometimes I question the ease of access to learning resources that are free on the web. Seems odd to me that all this wealthy information is free. Stuff like this use to be best kept secrets that you could only learn from on the job. Not anymore! Its all available now! Its just too easy! I think this is eventually going to hurt our industry! It wont be long before everyone is a web designer/graphic designer!The only thing stopping you now is time! Anyhow, good resource as always SM! You guys have a wonderful plethora of useful resources!

  11. 11
    Aditya Saxena
    August 10th, 2009 5:51 am

    wow! ass kicking content here, guys! good job.

  12. 12
    ron56
    August 10th, 2009 5:54 am

    There’s a pb on the article :
    ‘CSS Large Background’

    Bad links, thks

    (SM) Thanks, the link was updated. Sorry for inconvenience.

  13. 13
    Gerd Wippich
    August 10th, 2009 6:37 am

    Some pretty cool stuff. Thank you, Cameron.
    @Eri #10: Don’t worry. Just because you can find tutorials for free on the net, that does not mean everybody will become an excellent web designer… it just makes it easier for those who are really deeply interested. That is one of the big advantages of having a free-for-all web!

  14. 14
    gideon
    August 10th, 2009 6:52 am

    You guys just keep on giving ;)

  15. 15
    daniel
    August 10th, 2009 6:56 am

    SIMPLY gr8 !

  16. 16
    Dan
    August 10th, 2009 7:42 am

    Great article here. A lot of this will come in handy when I end up needing some extra refreshers on my CSS.

  17. 17
    MaTYO
    August 10th, 2009 8:21 am

    great article, thanks for compiling the lists!

  18. 18
    Vddv
    August 10th, 2009 8:23 am

    Also please publish similer articles for Web designers, something like master web design.

  19. 19
    Alpesh Darji
    August 10th, 2009 9:48 am

    Awsome article. Bookmarked

  20. 20
    Raymundo Castillo
    August 10th, 2009 10:07 am

    Really usefull compiling list,
    Thanks Guys.

  21. 21
    Linus
    August 10th, 2009 10:26 am

    Oh, lots of useful links here, but maybe to many? I’d prefer splitting this article into (at least) two separate posts.

  22. 22
    Harry Moore
    August 10th, 2009 10:54 am

    The link for:
    Cross-browser semi-transparent backgrounds

    and

    How to: CSS Large Background

    are the same links, and doing some exploration on the site it does not seem like the second is on there at all or intentional. can you please update the link… other than that a great piece

  23. 23
    h1brd
    August 10th, 2009 11:51 am

    great collection of tuts and other resources!

  24. 24
    Matt - Microbrew Media
    August 10th, 2009 11:52 am

    Great Article! These will be very useful. Keep up the good work smashing!

  25. 25
    Alex
    August 10th, 2009 1:14 pm

    Awesome post! canne wait to get stuck into these :D!

  26. 26
    O'Ryan
    August 10th, 2009 1:32 pm

    @Eri #10: Having all those resources out there for free creates a huge community of designers and programmers that the next generation of designers and programmers (and current) can pull best practices from, it keeps things from getting stagnant and also drives growth and improvement. If not for that open free for all attitude we would still be using tables for layout on pages with bright red borders and granite textured backgrounds….

  27. 27
    Aaron
    August 10th, 2009 3:48 pm

    Sharing makes us all better designers. Thanks for the list SM!

  28. 28
    xaga
    August 10th, 2009 7:41 pm

    best compilation I’ve ever seen!!! awesome

  29. 29
    Floris Fiedeldij Dop
    August 10th, 2009 8:41 pm

    Very excellent post, 10/10 … more of these articles, .. sigh! Where were you guys 10 years ago.

  30. 30
    loop26
    August 11th, 2009 12:02 am

    Great article, thanks

  31. 31
    Peter Lehto
    August 11th, 2009 12:08 am

    Great article and resource for the future.

    Thanks!

  32. 32
    subcorpus
    August 11th, 2009 2:00 am

    good follow up article …
    though i dont understand much about coding …
    i’m getting a lot of ideas … :)
    thanks …

  33. 33
    legs
    August 11th, 2009 3:07 am

    too… much… information…

    That is a HUUUUGE article, gonna take me a while to get through all of that!

    Great job, Thanks!

  34. 34
    sajid khan
    August 11th, 2009 4:05 am

    Advanced tech for Web Designer and Developer

  35. 35
    Yamid
    August 11th, 2009 5:33 am

    Soooo amazing work congratulations…. sos grande !!

  36. 36
    ady sulistrax
    August 11th, 2009 6:29 pm

    great post, very useful resource, I must bookmarked this post..

  37. 37
    Zayelion
    August 12th, 2009 12:16 am

    wow! so many cool tools to play with!

  38. 38
    uwspstar
    September 10th, 2009 7:05 am

    you guys awesome !!! nice collection

  39. 39
    Tim Rivera
    September 28th, 2009 6:54 pm

    Wow! I’m amazed that tutorials I wrote several years ago while helping people on webdesign mailing lists, including “Styling tables with CSS” referenced in this article, are still getting a lot of traffic through search engines and website links.

    This article appears to be very informative about various tricks. I will have to spend some time going through it.

  40. 40
    sandeep
    October 8th, 2009 2:51 am

    great post . u rock

  41. 41
    Pk09
    November 20th, 2009 1:15 am

    Nice Articles

  42. 42
    cortney
    December 21st, 2009 2:22 pm

    these are some really great tips and I was elated to see the advice for table codes, like calenders. If anyone else is looking for clarity on sequential coding .check this out

  1. 00

    There are no trackbacks at this time. If you are interested in leaving a trackback, please use this URL.

Leave a Comment

Make sure you enter the * required information where indicated. Please also rate the article as it will help us decide future content and posts. Comments are moderated – and rel="nofollow" is in use. Please no link dropping, no keywords or domains as names; do not spam, and do not advertise!



Advertisement Advertise with us!
Join in Smashing Forum
Post your job