50 New CSS Techniques For Your Next Web Design


CSS is almost certainly one of the best developments in web design since the first graphical web browsers were adopted on a wide scale. Where tables created clunky, slow-loading pages, CSS created much more streamlined and usable web pages. Plus, CSS has allowed designers to achieve a number of different styles that used to only be possible with images.

One of the best parts of CSS is that it’s so simple once you know the basics. Where tables used to make incredibly complex and sometimes impossible-to-decipher code, CSS keeps things clean and simple. Add a few comments to keep everything organized and it becomes an absolute dream to work with.

Below are 50 fresh CSS tricks, techniques and tutorials that will help you to improve the quality of your next web design. Be sure to check out our previous article: 53 CSS-Techniques You Couldn’t Live Without1.

1. Security and Performance

While CSS is often thought of as merely a styling language, there are ways you can use it to add security to your site. There are also ways you can optimize your CSS to improve page load times. Both are discussed below.

Make your pages load faster by combining and compressing javascript and css files

This tutorial2 shows you how to create a PHP script to compress and combine multiple CSS and/or JavaScript files with gzip when they’re called for by a browser. It speeds up the page load times while making it possible to still edit the individual CSS or JavaScript files without having to combine and re-compress everything each times.

Informal testing showed that a group of JavaScript files were reduced from 168Kb (and 1905 ms to transfer) to 37Kb (and 400 ms). There wasn’t any data available for the effect it had on CSS files, but I’d guess it’s probably pretty similar.


The Definitive Post on Gzipping Your CSS

This post4 covers the best and most recent methods for using GZIP to compress your CSS. It currently covers two different methods, both equally effective. One involves adding a bit of PHP to your CSS file (and renaming the file with a PHP extension instead of CSS) while the other method involves using the same PHP code with some additions but in a separate file.


Clickjane.css: A CSS User Style Sheet to Help Detect and Avoid Clickjacking Attacks

This post6 covers how to use clickjane.css to prevent clickjacking, a class of security vulnerabilities kind of like phishing scams and more formally referred to as user interface redressing. It’s cross-browser compatible but, admittedly, probably only covers a small range of potential clickjacking vulnerabilities. It’s still a good place to start, though.


5 Step Style Sheet Weight Loss Program

This post8 shows five different ways to trim the size of your style sheets. Techniques range from learning how to group selectors to using CSS shorthand. Each technique is thoroughly explained and includes related resources.


2. Page Layout

This is what CSS was built for. The options are almost endless, especially as CSS3 becomes the new standard.

Aligning Inline Images with the Vertical-Align Property

The default vertical alignment for inline images in text sometimes looks not-so-great. This tutorial10 shows you how to better align inline images with your site’s type. It goes over the different types of vertical alignment and what they mean in relation to type.


CSS Centering

This post12 includes instructions for centering liquid layouts with CSS. It’s very simple and straight-forward and works in virtually all browsers. Basically, it just uses left and right margins combined with some additional code to make it cross-browser compatible.


Making Your Footer Stay Put with CSS

Keeping footers at the bottom of your pages can be a real hassle with CSS, depending on how the rest of your page is set up. This tutorial14 shows exactly how to keep your footer where it should be—below the rest of your content! It’s a very thorough post, with complete, step-by-step instructions.


Vertical Centering with CSS

This post16 covers five excellent ways to center your content vertically. It includes the good and bad for each method along with complete instructions for implementing them. The methods range from using divs that act like tables to using absolute positions.


Handy Tips for Creating a Print CSS Stylesheet

This post18 is filled with great tips for creating better print stylesheets. It includes instructions for everything from including link destinations after the link text to splitting comments onto a new page. Pick and choose from the techniques offered or copy the whole stylesheet.


Fluid Images

Fluid layouts are great. They generally look and function just fine until you start introducing fixed-width elements within them—like images. This post20 shows how to make your images fluid, too. And it works for most embedded video. And while the basic technique includes just one CSS property, there is a workaround necessary to make it work on Windows machines.


Flexible Equal Height Columns

This tutorial22 shows how to create completely versatile equal height columns using valid and semantic markup. It’s cross-browser compatible and works with both fixed, fluid, and even elastic designs. It’s a very complete tutorial but not at all complicated.


CSS Columns with Borders

This is a technique24 for creating equal-height columns with CSS that have borders. It uses a series of nested divs to achieve the effect instead of images. The end result is fantastic.


Creating a Polaroid Photo Viewer with CSS3 and jQuery

The photo gallery created with this technique26 is absolutely awesome. The HTML and CSS aren’t super-complicated, and everything is explained really well. While CSS3 isn’t supported by every browser, this does appear to degrade gracefully, making it perfectly fine to use as long as you don’t mind some visitors not getting the full effect.


A Killer Collection of Global CSS Reset Styles

An incredibly complete collection28 of global resets, this post covers pretty much every reset you could possibly need. Some are short and sweet, consisting of only a couple of properties, while others are very complete and reset everything you might consider resetting.


Making Module Layout Systems

This tutorial30 gives complete instructions for creating modular layout systems using CSS. This makes it practical to use different grid-based divs as needed for individual content elements. The end result provides tons of flexibility for dealing with everything from images to text while keeping everything uniform and balanced.


Multiple Backgrounds (CSS3)

This tutorial32 shows how to implement multiple backgrounds using CSS3. It’s currently only supported by Safari, but the tutorial includes tricks to make it work in non-supported browsers. Currently, it doesn’t validate, but once the CSS3 standard is completed it’s likely it will.


CSS3 Multiple Columns

Here’s a tutorial34 for creating multi-column layouts with CSS3. The CSS is pretty simple and straight-forward, much easier than most current solutions to multi-column layouts. Unfortunately, this only works with Firefox, Safari and Chrome at the moment.


Smart Columns with CSS and jQuery

This tutorial36 shows how to create smart columns inside liquid layouts using a combination of CSS and jQuery. Basically, it fits as many columns into the base column size as possible and then distributes any leftover white space among the columns there. A very elegant solution if you want to allow for a variable number of columns without ending up with a bunch of leftover white space in your design.


CSS Hack for Chrome, Safari and Internet Explorer

This tutorial38 shows how to apply different style sheets based on the browser your visitors are using (at least in IE5-8, Google Chrome, and Safari 1-4). A very valuable technique if you want to use styles only supported in certain browsers without making your site look bad in unsupported browsers.

3. Menu and Navigation Customizations

Menu and navigation styles can really set your site apart if done well. Just remember, menus need to remain usable and functional no matter how they look.

Overlap That Menu!

Have you ever wanted to create menu items that overlap? This relatively-simple tutorial39 shows you how to do just that using unique classes for your menu items. It also tells how to reorder the navigation items using the z-index. It’s a nice effect that isn’t difficult to achieve.


Super Awesome Buttons with CSS3 and RGBA

With a little CSS3 magic, you can created a scalable set of sexy buttons41 with nearly half the CSS it would have taken with hex colors. Give it a go in your next project and see how it can help add that extra polish you want without huge impact on your code.

 Super Awesome Buttons with CSS3 and RGBA42

Custom Buttons 3.0

This page43 shows a variety of rounded-corner (1px radius) buttons that don’t use images (other than for the optional background gradient). Just look at the source code for the page to see how it’s done.


Centered Tabs with CSS

This tutorial45 provides an alternative to the sliding doors method of creating tabs in CSS that allows tabs to be centered instead of only right- or left-aligned. It’s a multi-step tutorial but isn’t complicated.


Styling the Button Element with CSS Sliding Doors

An updated tutorial47 on sliding doors buttons that now includes creating them with CSS image sprites. It’s also been simplified to work with a single block of CSS in all the major browsers (including IE 6-8). The markup is simple and straight-forward and the end result is perfect.


Styling Buttons to Look Like Links

Sometimes you have to use a button (like with forms), but realize your design would look so much better with just a simple text link. This tutorial49 gives a complete overview of how to make your buttons look like text links using CSS.


Simple, Scalable CSS Based Breadcrumbs

Breadcrumbs can be a great addition to your site’s navigation and can really improve your site’s usability. This tutorial51 shows you how to create breadcrumbs with CSS. The code used is simple (the HTML portion is just an unordered list) and there are only six CSS styles defined.


Recreating the Button

This article53 covers how to make a button that look very similar to regular HTML input buttons but can handle multiple types of interaction (like dropdowns or toggle functions). These buttons were originally developed at Google and are skinnable with just a few lines of CSS. The buttons created are entirely CSS-based, including the gradient background.


List of 10+ Usability-Conscious Link Styles

This page55 offers a good overview of different effects you can use for links, including color and underline, backgrounds, and animations. It’s a good starting place if you’re trying to figure out exactly how your links should look and act to make them more user-friendly.


Create Vimeo-Like Top Navigation

Here’s a tutorial57 to create a drop-down top navigation bar similar to the one Vimeo.com58 uses. It’s all done with images, CSS and HTML and isn’t particularly difficult, though it is a bit complex. It’s explained really well, with images illustrating the structure and very well-written CSS.


Beautifully Horizontal Centered Menus/Tabs/List

This tutorial60 explains how to create cross-browser compatible, centered menus or other items in CSS with no hacks and no JavaScript It’s compatible with liquid layouts, too. Not only does it give the code to achieve the effect, but it also fully explains exactly how and why it works.

4. Typography

Here are a few tutorials and tricks for creating advanced typographic styles using CSS. There’s everything from line-wrap functions to faux anti-aliasing to adding gradients and shadows.

Wrapping Text Inside Pre Tags

This tutorial61 shows how to wrap text within pre html tags. It’s useful for displaying code on your site, especially when lines of code are quite long and end up breaking your site’s layout (especially in IE). It’s a relatively simple and there are a few different options presented.


Make Cool and Clever Text Effects with CSS Text-Shadow

Creating text effects without the use of images is a big advantage in terms of both file size and the time required for maintenance. This tutorial63 shows how to take advantage of the text-shadow property in CSS to style your text. While this effect doesn’t work in IE, it does in most other browsers. And it looks incredibly cool if done well (I’m a big fan of the “milky text” example).


Safari’s Text-Shadowing Anti-Aliasing CSS Hack

This tutorial65 shows how to use the text-shadow CSS property to create an anti-aliasing effect on your text. It only works in browsers that support text-shadow (so not IE), but the look is pretty awesome. It can definitely make text more readable, just don’t overdo it or you end up with text that’s blurry.


Safari’s Text-Shadowing Anti-Aliasing CSS Hack Revision

This is a revised67 version of the technique above to create a slightly different anti-aliasing effect, especially useful for light text on dark backgrounds. It uses an extremely transparent black background to force Safari to render the text more legibly.


Snazzy Pullquotes for Your Blog

If you have a blog or other site that’s text-heavy, using pull quotes to highlight important bits can look really awesome while also making your content more scannable. This tutorial69 shows how to format those pull quotes with CSS. It shows how to create both left and right aligned pull quotes while also preserving your regular blockquote style.


Codename Rainbows

Here’s a technique71 for creating two-color gradients for text using a combination of JavaScript and CSS. It also works to apply shadows and highlights to text. The possibilities for the use of this technique are pretty endless. Of course, this is also one of those things where a little bit goes a long way (ie, limit gradients to your headers, titles, and other text you want to stand out—not your site’s body copy).


Build Better CSS Font Stacks

This article73 gives some great guidelines for creating better CSS font stacks. It includes information on the most common font stacks currently used and then goes on to cover Tuck’s Definitive Font Stacks and Ford’s Better Font Stacks. It’s a great resource when you’re determining a site’s typography, with the information presented in a very scannable, well-organized format.


CSS3 Embedding a Font Face

Here’s a great tutorial75 on how to embed fonts using CSS3. While it’s still not widely supported, this technique makes it much easier to embed special fonts into a site without having to resort to images.


CSS Gradient Text Effect

This little trick77 makes it easy to create gradient text by applying a 1 pixel gradient PNG to it. It’s a quick and easy way to create gradient text pretty much anywhere on your site. There’s even a fix to make it work in IE6 included.


5. Other Cool Techniques, Tips, and Tricks

Below are a ton of other techniques and tricks you can use to really make your CSS stand out.

3D Cube Using CSS Transformations

This is probably one of the coolest CSS techniques I’ve seen. This tutorial79 shows how to build a 3D cube with text or other content on each side of the cube. It does it entirely with CSS; there’s no canvas, SVG, imagery, or JavaScript. There’s even instructions for creating multiple shaded cubes on a single page. The only real drawback is that it’s only supported in recent WebKit and Gecko browsers.


Nine Ways to Obfuscate E-mail addresses compared

This article81 gives two different methods for obfuscating email addresses with CSS. One involves using the display:none attribute while the other involves reversing the code. Both supposedly cut the amount of spam received to zero.


Forms Markup and CSS – Revisited

Here is a CSS template83 for form styling. The markup of the form is based on the Accessible Forms Markup from Derek Featherstone. The template is semantically correct, flexible and accessible.


iPhone CSS

A very short and simple tutorial85 on how to make certain elements of you CSS render differently on the iPhone. It’s surprisingly simple and easy to implement.


Improving Your Process: Faster Front End Development

While this post87 offers plenty of information on things other than CSS, it also offers some great advice for improving your efficiency with CSS: mainly, write your CSS in blocks. This technique is usually done progressively as you get used to coding in this manner. The steps are simple, though, and it’s sure to make you a much faster designer.


Image-Free CSS Tooltip Pointers – A Use for Polygonal CSS?

This tutorial89 explains how to create triangles (to be used for pointers) using CSS, without the need for any images. The end result is great, though it only works for single-color images. The CSS used is incredibly simple while still being really versatile. You can create a triangle of almost any size using just a single div.


How I Implemented My Cookie-Based Switcher

While not strictly a CSS trick, this post91 shows how to create a cookie-based CSS theme switcher for WordPress. It allows users to choose to use a different theme when they visit the blog while allowing new users to see a nice, simple, easy-to-read theme that puts the primary focus on the content.


CSS Swap Hover Effect

This great technique93 will replace any image with another image when you hover over it. The tutorial shows it applied to a portfolio site, but the possibilities are endless. It’s very slick and cross-browser compatible (though IE6 does require a bit of a workaround, as usual).


CSS Stacked Bar Graphs

Here’s a tutorial95 for creating stacked bar graphs using CSS and some images. It’s a pretty in-depth process, but the result looks fantastic.


Changing HTML Images on Hover / A Quick CSS Trick

Here’s a quick and easy CSS technique97 for swapping out images on hover. It’s pure CSS, no JavaScript required. The biggest issue this technique solves is that when the page is printed, the base image is the only one that shows up.


10 Properties that Were Impossible to Implement in IE6

This collection99 of CSS tricks shows how to implement a number of styles that were supposedly impossible in Internet Explorer 6. It includes tricks for opacity, fixed positions, and text shadow, among others.


10 Challenging But Awesome CSS Techniques

Sometimes the coolest things just take a bit more effort. This collection of tutorials101 covers ten different CSS techniques that aren’t exactly easy to achieve, but the end results are well worth the extra effort. Techniques include pull quotes, dynamic variables, and style changes based on the time of day or even the weather, among other awesome examples.


Further Resources


  1. 1 http://www.smashingmagazine.com/2007/01/19/53-css-techniques-you-couldnt-live-without/
  2. 2 http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files
  3. 3 http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files
  4. 4 http://www.fiftyfoureleven.com/weblog/web-development/css/the-definitive-css-gzip-method
  5. 5 http://www.fiftyfoureleven.com/weblog/web-development/css/the-definitive-css-gzip-method
  6. 6 http://maymay.net/blog/2008/12/29/clickjanecss-a-css-user-style-sheet-to-help-detect-and-avoid-clickjacking-attacks/
  7. 7 http://maymay.net/blog/2008/12/29/clickjanecss-a-css-user-style-sheet-to-help-detect-and-avoid-clickjacking-attacks/
  8. 8 http://www.sohtanaka.com/web-design/optimizing-css-tutorial/
  9. 9 http://www.sohtanaka.com/web-design/optimizing-css-tutorial/
  10. 10 http://www.maxdesign.com.au/2008/10/05/vertical-align/
  11. 11 http://www.maxdesign.com.au/2008/10/05/vertical-align/
  12. 12 http://www.maxdesign.com.au/presentation/center/
  13. 13 http://www.maxdesign.com.au/presentation/center/
  14. 14 http://fortysevenmedia.com/blog/archives/making_your_footer_stay_put_with_css/
  15. 15 http://fortysevenmedia.com/blog/archives/making_your_footer_stay_put_with_css/
  16. 16 http://blog.themeforest.net/tutorials/vertical-centering-with-css/
  17. 17 http://blog.themeforest.net/tutorials/vertical-centering-with-css/
  18. 18 http://line25.com/tutorials/handy-tips-for-creating-a-print-css-stylesheet
  19. 19 http://line25.com/tutorials/handy-tips-for-creating-a-print-css-stylesheet
  20. 20 http://unstoppablerobotninja.com/entry/fluid-images/
  21. 21 http://unstoppablerobotninja.com/entry/fluid-images/
  22. 22 http://www.socialgeek.be/blog/read/flexible-equal-height-columns
  23. 23 http://www.socialgeek.be/blog/read/flexible-equal-height-columns
  24. 24 http://www.onderhond.com/blog/onderhond/css-columns-with-borders
  25. 25 http://www.onderhond.com/blog/onderhond/css-columns-with-borders
  26. 26 http://www.marcofolio.net/webdesign/creating_a_polaroid_photo_viewer_with_css3_and_jquery.html
  27. 27 http://www.marcofolio.net/webdesign/creating_a_polaroid_photo_viewer_with_css3_and_jquery.html
  28. 28 http://perishablepress.com/press/2007/10/23/a-killer-collection-of-global-css-reset-styles/
  29. 29 http://perishablepress.com/press/2007/10/23/a-killer-collection-of-global-css-reset-styles/
  30. 30 http://24ways.org/2008/making-modular-layout-systems
  31. 31 http://24ways.org/2008/making-modular-layout-systems
  32. 32 http://group.mind-productions.com/articles/multiple_backgrounds__css3_/
  33. 33 http://group.mind-productions.com/articles/multiple_backgrounds__css3_/
  34. 34 http://www.zenelements.co.uk/blog/css3-multiple-columns/
  35. 35 http://www.zenelements.co.uk/blog/css3-multiple-columns/
  36. 36 http://www.sohtanaka.com/web-design/smart-columns-w-css-jquery/
  37. 37 http://www.sohtanaka.com/web-design/smart-columns-w-css-jquery/
  38. 38 http://www.giantisland.com/Resources/LitePacificHackforSafariAndIE7.aspx
  39. 39 http://www.cssbake.com/cookbook/overlap-that-menu/
  40. 40 http://www.cssbake.com/cookbook/overlap-that-menu/
  41. 41 http://www.zurb.com/article/266/super-awesome-buttons-with-css3-and-rgba
  42. 42 http://www.zurb.com/article/266/super-awesome-buttons-with-css3-and-rgba
  43. 43 http://stopdesign.com/eg/buttons/3.0/code.html
  44. 44 http://stopdesign.com/eg/buttons/3.0/code.html
  45. 45 http://24ways.org/2005/centered-tabs-with-css
  46. 46 http://24ways.org/2005/centered-tabs-with-css
  47. 47 http://www.filamentgroup.com/lab/update_styling_the_button_element_with_css_sliding_doors_now_with_image_spr/
  48. 48 http://www.filamentgroup.com/lab/update_styling_the_button_element_with_css_sliding_doors_now_with_image_spr/
  49. 49 http://natbat.net/2009/Jun/10/styling-buttons-as-links/
  50. 50 http://natbat.net/2009/Jun/10/styling-buttons-as-links/
  51. 51 http://veerle.duoh.com/blog/comments/simple_scalable_css_based_breadcrumbs/
  52. 52 http://veerle.duoh.com/blog/comments/simple_scalable_css_based_breadcrumbs/
  53. 53 http://stopdesign.com/archive/2009/02/04/recreating-the-button.html
  54. 54 http://stopdesign.com/archive/2009/02/04/recreating-the-button.html
  55. 55 http://code.fecklessmind.com/links-hover-effects/
  56. 56 http://code.fecklessmind.com/links-hover-effects/
  57. 57 http://www.jankoatwarpspeed.com/post/2009/01/19/Create-Vimeo-like-top-navigation.aspx
  58. 58 http://www.vimeo.com
  59. 59 http://www.jankoatwarpspeed.com/post/2009/01/19/Create-Vimeo-like-top-navigation.aspx
  60. 60 http://matthewjamestaylor.com/blog/beautiful-css-centered-menus-no-hacks-full-cross-browser-support
  61. 61 http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/
  62. 62 http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/
  63. 63 http://www.kremalicious.com/2008/04/make-cool-and-clever-text-effects-with-css-text-shadow/
  64. 64 http://www.kremalicious.com/2008/04/make-cool-and-clever-text-effects-with-css-text-shadow/
  65. 65 http://sam.brown.tc/entry/348/safaris-text-shadow-anti-aliasing-css-hack
  66. 66 http://sam.brown.tc/entry/348/safaris-text-shadow-anti-aliasing-css-hack
  67. 67 http://www.komodomedia.com/blog/2009/03/safari-text-shadow-anti-aliasing-css-hack/
  68. 68 http://www.komodomedia.com/blog/2009/03/safari-text-shadow-anti-aliasing-css-hack/
  69. 69 http://www.pearsonified.com/2006/09/snazzy_pullquotes_for_your_blo.php
  70. 70 http://www.pearsonified.com/2006/09/snazzy_pullquotes_for_your_blo.php
  71. 71 http://labs.dragoninteractive.com/rainbows.php
  72. 72 http://labs.dragoninteractive.com/rainbows.php
  73. 73 http://www.codestyle.org/css/font-family/BuildBetterCSSFontStacks.shtml
  74. 74 http://www.codestyle.org/css/font-family/BuildBetterCSSFontStacks.shtml
  75. 75 http://www.zenelements.co.uk/blog/css3-embed-font-face/
  76. 76 http://www.zenelements.co.uk/blog/css3-embed-font-face/
  77. 77 http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/
  78. 78 http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/
  79. 79 http://www.fofronline.com/2009-04/3d-cube-using-css-transformations/
  80. 80 http://www.fofronline.com/2009-04/3d-cube-using-css-transformations/
  81. 81 http://techblog.tilllate.com/2008/07/20/ten-methods-to-obfuscate-e-mail-addresses-compared/
  82. 82 http://techblog.tilllate.com/2008/07/20/ten-methods-to-obfuscate-e-mail-addresses-compared/
  83. 83 http://nidahas.com/2006/12/06/forms-markup-and-css-revisited/
  84. 84 http://nidahas.com/2006/12/06/forms-markup-and-css-revisited/
  85. 85 http://squaregirl.com/blog/2009/6/1/iphone-css.html
  86. 86 http://squaregirl.com/blog/2009/6/1/iphone-css.html
  87. 87 http://mondaybynoon.com/2009/06/15/improving-your-process-faster-front-end-development/
  88. 88 http://mondaybynoon.com/2009/06/15/improving-your-process-faster-front-end-development/
  89. 89 http://www.filamentgroup.com/lab/image_free_css_tooltip_pointers_a_use_for_polygonal_css/
  90. 90 http://www.filamentgroup.com/lab/image_free_css_tooltip_pointers_a_use_for_polygonal_css/
  91. 91 http://www.christianmontoya.com/2007/02/04/how-i-implemented-my-cookie-based-switcher/
  92. 92 http://www.christianmontoya.com/2007/02/04/how-i-implemented-my-cookie-based-switcher/
  93. 93 http://min.frexy.com/article/css_swap_hover_effect/
  94. 94 http://min.frexy.com/article/css_swap_hover_effect/
  95. 95 http://www.thewojogroup.com/2008/12/css-stacked-bar-graphs/
  96. 96 http://www.thewojogroup.com/2008/12/css-stacked-bar-graphs/
  97. 97 http://www.onderhond.com/blog/work/changing-html-images-on-hover
  98. 98 http://www.onderhond.com/blog/work/changing-html-images-on-hover
  99. 99 http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/
  100. 100 http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/
  101. 101 http://net.tutsplus.com/tutorials/html-css-techniques/10-challenging-but-awesome-css-techniques/
  102. 102 http://net.tutsplus.com/tutorials/html-css-techniques/10-challenging-but-awesome-css-techniques/
  103. 103 http://www.noupe.com/css3/css3-exciting-functions-and-features-30-useful-tutorials.html
  104. 104 http://www.gabrielweinberg.com/blog/2009/06/a-harsh-css-environment-for-testing-widgets.html
  105. 105 http://speckyboy.com/2009/06/08/24-css-in-some-cases-with-jquery-navigation-and-menu-tutorials/
  106. 106 http://blog.themeforest.net/general/15-css-tricks-that-must-be-learned/

↑ Back to top Tweet itShare on Facebook

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 The Smashing Idea Book: From Inspiration to Application.

  1. 1

    Nice list!

  2. 2

    Great resources..
    iPhone CSS tutorial is something I was really looking for..
    Thanks SM!

  3. 3

    Łukasz Adamczuk

    July 20, 2009 1:04 am

    Some of them are really usefull.

  4. 4

    Very nice! Thanks.

  5. 5

    nice. bookmarked

  6. 6

    Amazing. How do you guys get so much content rammed into 1 blog post. You really are putting a lot of design blogs to shame now.

  7. 7

    Dainis Graveris

    July 20, 2009 1:12 am

    amazing, just amazing..such huge post..:)

  8. 8

    Wow thanx. Some of those techniques are very useful.

  9. 9

    That’s a hugely extensive list. Excellent post and a lot of new things in there.

  10. 10

    Awesome post! great collection of extremely usefull css techniques!

  11. 11

    one of the best articles I’ve seen here.
    definitely going to add this to delicious ;)

  12. 12

    Thanks SM
    the “Build Better CSS Font Stacks” was just what I needed!

  13. 13

    I definitely love CSS 3, but as it’s only (and partially) supported by FF3.5+, Chrome and Safari (for now), I would consider sticking with CSS 2 a wise decision.

  14. 14

    This is really cool collection of the CSS tricks

  15. 15

    very useful list!

    Thanks a lot!

  16. 16

    Do not use PHP to output CSS. It’s a serious overhead and it will kill your server sooner or later. Generate them beforehand and always serve them static.

  17. 17

    Great post. So many interesting things.

  18. 18

    Simply amazing. There few things here i never knew about. lots of thanks for his post. cheers!

  19. 19

    Really great stuff !!! thanks a ton for this !! I love smashing !!

  20. 20

    Very, very informative. I enjoyed reading it very much and a big thanks to smashing for putting this up

  21. 21

    That’s a really useful collection of tips, thanks Cameron.

  22. 22

    Thanks for sharing Cameron. Usefull tips…!

  23. 23

    this article makes sm be the best

  24. 24

    I will always look site like this I very love it and I will put this ideas to my joomla site soon. Thanks so much.

  25. 25

    Awesome post. very informative.

    CSS Tutorials For Beginners

  26. 26

    Great job – I give this 5 cowbells…

  27. 27

    Thank u Smaasheee….

    Awesome post….

  28. 28

    Wow…. these stuff are helpful
    thanks for smashin’ it in one post.

  29. 29

    Very good, will be having a try when I have a little time. Cheers

  30. 30

    Wow, Pure gold! Thanx guys!

  31. 31

    Excellent overview. :)

  32. 32

    Thanks, this is definitely very useful for me as a freelance xhtml/css coder.
    Bookmarked this page.. I love it! =D

  33. 33

    Thanks for including mine

    Gopal Raju

  34. 34

    Excellent list. There’s some really useful articles here, particularly the email obfuscation comparisons and the two-color gradients.

  35. 35

    Thanks a lot, although now I feel I want to try them ALL…!

  36. 36

    Easily one of the best CSS posts ever.

  37. 37

    Concerning css shorthands and compression: Do you know of any tool that optimizes css by regrouping the selectors and automatically transforming long expressions into their shorthand equivalents, and eliminating those values, which already would have the same value via inheritation, etc. A tool which compresses CSS not by only eliminating whitespace and semicolons, but actually rewriting the css?

  38. 38

    Phillipe Calmet

    July 20, 2009 7:50 am

    This is definitely a great resource list. Thanks for sharing it. :D

  39. 39

    great resource, thank you!

  40. 40

    wow fantastic stuff. gonna keep me busy, thats for sure

  41. 41

    On the multiple backgrounds tutorial – you mention that some workarounds are mentioned for browsers that do not currently support the property. However, when I go to that site, I do not see any workarounds. Just an FYI.

  42. 42

    A Website Designer

    July 20, 2009 10:02 am

    Great to see a Smashing Mag article covering CSS again. I feel people do not understand the importance of CSS. With the addition of new CSS techniques it is inhteresting to see how different website designers have implemented the changes.

  43. 43

    Neat collection here, but hardly ‘new’…

  44. 44

    Awesome Post.
    Great Work !!!

  45. 45

    CSS3 … causing more problems than bringing benefits at the moment… doesnt it?

  46. 46

    What I don’t understand is examples like the css bar graph. Why not just use an image? This is a serious question

  47. 47

    Talk about Christmas in July! Thanks, SM!

  48. 48

    That’s great!

    I need more time to study this and test lot things. Time to study, it’s all about that… =(

  49. 49

    Very cool. So much for my _spare_ time this week.

  50. 50

    Great collection of tips! Lot’s of good stuff in there!

  51. 51

    nice list. i been searching for this for a long period of time. great help. t.y.

  52. 52

    Well… there goes the rest of my day… brilliant stuff… thanks

  53. 53


  54. 54

    really awesome =) nice post

  55. 55

    Wow !
    This is what I was looking for….

  56. 56

    Hey, css3 rocks the house. Thas fo’ sure! But … can I really develop a Website with CSS3 by now?

  57. 57

    this is the most valuable post i’ve ever seen for css. all the things i’ve always wondered how to do are in here… thanks a lot!

  58. 58

    Dude! Really nice post, awesome stuff to look at, thanks :)

  59. 59

    This will be very useful !
    Thanks a lot :)

  60. 60

    Wow very nice round up! thanks

  61. 61
  62. 62

    Great technique…more knowledge for my CSS technique..Awsome..!!! keep up the good work

  63. 63

    Oh my! What a useful resource. Thanks so much.

  64. 64

    Wow! What a crazy list! Thanks a lot :)

  65. 65


    July 21, 2009 11:18 pm

    Nice collection, but “new techniques”? They are all known.

  66. 66

    Ashely Adams : Sticker Printing

    July 21, 2009 11:32 pm

    Thanks Cameron, it’s a nice list! I really found some of them very useful. I think I should try the CSS Gradient Text Effect, although I am not much into web designing. These CSS techniques will help the web designers to implement various creative and unique changes and are sure to grab the attention.

  67. 67

    Wicked collection! Thanks a lot.

  68. 68

    Wonderful list!

  69. 69

    really helping article. thanks

  70. 70

    Thank you for this! Bookmarked to review later!

  71. 71

    wonderfull collection .. thanks for sharing .. go to learn a lot !

  72. 72

    Even managed to use the Polaroid Photo Viewer for Friends of the site. Thank you.

  73. 73

    very nice~~~

  74. 74

    “A Killer Collection of Global CSS Reset Styles” is the worst possible suggestion you can make when it comes to CSS resets. the * { } selector has long been recognised as slow, plus it is less precise and lacks the control you need as a designer.

    If you need a reset, I’d suggest Eric Meyer’s reset instead.

  75. 75

    Really helpful css techniques.
    Thanks for sharing.

  76. 76

    nice article

  77. 77

    Mehrdad Nassiri

    July 26, 2009 11:38 am

    Very useful article,
    thank you,

  78. 78

    This is probably one of the best submissions I’ve read on Smashing. HIghly useful in a number of situations, thanks a lot!

  79. 79

    so wonderful!
    thank you!

  80. 80

    Awesome collection here. It is really very useful. Thanks for sharing such nice information here. It will be useful for iphone css tutorial. I like this site and it is nice to post here.

    jeux ps2

  81. 81

    Very very nice tricks

  82. 82

    Thanks for sharing..

  83. 83

    Awesome CSS resource collection… It has almost everything to fine tune one’s CSS skills… Great Job!

  84. 84

    Good read. I’m not sure I’m ready to use CSS3 and HTML5. It doesn’t seem to me like they are supported by enough browsers to bother with. Soon though…

  85. 85

    It’s great! I really want to improve my CSS skill!

  86. 86

    ~ bookmarked ;)

  87. 87

    ya … this good css tutorial ..
    thank for helping
    and have more creativity

  88. 88

    Good post! I specially found the embedding of ttf fonts to be helpful! I tested it on FF 3.5/ IE7/IE8 and will be using it on a project.

  89. 89

    Great post. very nice tutorials.

  90. 90

    Wow… that is a damn fine list.

  91. 91

    I found this litle late but still it is very nice post
    thanks for sharing


  92. 92

    April 19th, 2010 2:49 am
    It’s great!

  93. 93


    May 28, 2010 5:22 pm

    that’s all cool & great css techniques, thank you very much for sharing.

    Can you give me favor to share this post on my JavaScript library?

    Awaiting your response. Thank

  94. 94

    Nice collection. Learned a lot

  95. 95

    that’s cool & useful css techniques, nice to read your your blog thanks for sharing. Could you give me favor to share some basic CSS coding?
    Awaiting your response.

  96. 96

    Great List, bookmarked for use in several projects.

  97. 97

    Dude! Really nice post, awesome stuff to look at, thanks :)

  98. 98

    Why haven’t I seen this before? -_-

    THANKS! *bookmarks*

  99. 99

    Ramesh Vishwakarma

    September 20, 2010 4:25 am


  100. 100

    There are a lot of really nice techniques here. Thanks for sharing so many quality resources.

  101. 101

    Thanks for sharing dear buddy keep it up and say all is well.
    cna certification

  102. 102

    Great Collection of Css techniques. Thanks for sharing… keep it up

  103. 103

    Thanks for posting such a great list of CSS techniques.

  104. 104

    Thanks for sharing. I will be using some of the tips in my future projects

  105. 105

    Mike Fitzpatrick

    August 3, 2012 6:56 am

    There are some pretty neat ideas on the website http://www.jeyjoo.com
    They make use diagonal lines and slanted texts. Simple, but not seen very often, which makes the website stand out.


↑ Back to top