101 CSS Techniques Of All Time- Part 1

January 13th, 2008

CSS has fundamentally changed web design, it has provided designers with a set of properties that can be tweaked to make various techniques to make your pages just look right.

Today we are presenting a round-up of 101 CSS techniques designers use all the time. Definitely worth taking a very close look at! This is just the first series , the second part will be coming soon, stay tuned and Enjoy!

CSS Sprites

CSS sprites save HTTP requests by using CSS positioning to selectively display composite background images. To maximize accessibility and usability, CSS sprites are best used for icons or decorative effects.

CSS Sprites

CSS Rounded Corners

Rounded corners is one of the most popular and frequently requested CSS techniques. There lots of ways to create rounded corners with CSS, but they always require lots of complex HTML and CSS. Here are easy ways to achieve this effect.

  • Even More Rounded Corners With CSS– Single-image, PNG-based, fluid rounded corner dialogs with support for borders, alpha transparency throughout, gradients, patterns and whatever else you could want.
    Demo :
    rounded corners

  • Rounded corners in CSS– Simple bordered div which contained four divs that each had a background-image and that were positioned in each of the corners.
  • Liquid rounded corners– For liquid design and transparent scrolling – tutorial and stylesheet
  • Mountaintop Corners– easier way for creating decent rounded corners.
    rounded corners

Image Replacements Technique

: Image Placement vs. Image Replacement (FIR)

This technique is mostly for headlines by using CSS to replace normal HTML text, with a background image in order to achieve a particular look.Several different image replacement methods have been proposed, each with their pros and cons.

when you need image replacement you can check the Gilder/Levin Method as described by Dave Shea or, if the replaced text is linked and CSS support for IE/Mac is required, the Gilder Levin Ryznar Jacoubsen IR method.

image replacement

Sliding Doors

Sliding Doors of CSS introduced a new technique for creating visually stunning interface elements with simple, text-based, semantic markup.Beautifully crafted, truly flexible interface components which expand and contract with the size of the text can be created if we use two separate background images.

sliding doors

Sliding Doors" Box– Rounded Corners for All– The goal of this technique was to create rounded-corner boxes with visual flare and the absolute minimal amount of semantically correct markup. While making sure they could resize while keeping their backgrounds intact.

sliding doors

Image Text Wrap Technique

How many times do you have an image floated left in a block of content, but want to keep that content from wrapping around your image?

This technique allows you to wrap around image text flow control to emulate magazine style page layouts.

Image Text Wrap

Equal Height Technique

One of the somewhat frustrating properties of CSS is the fact that elements only stretch vertically as far as they need to. So how can we make all columns appear to be the same height? Several techniques was introduced to solve this issue.

  • Faux Columns– The simple secret is to use a vertically tiled background image to create the illusion of colored columns.
  • Equal Height Columns – revisited– A method to make all columns appear to be the same height but without the need for faux column style background images.
  • Equal height boxes with CSS– The trick is to use the CSS properties display:table, display:table-row and display:table-cell to make containers (in this case div elements) behave like table cells. The basic XHTML structure looks like this:
        <div class="equal">    <div class="row">    <div class="one"></div>    <div class="two"></div>     <div class="three"></div>    </div>    </div>    

    Here is the CSS used to make this structure behave like a table:

    .equal {
    .row {
    .row div {

Turning A List Into A Navigation bar

Why use a list? Because a navigation bar, or menu, is a list of links. The most semantic way of marking up a list of links is to use a list element. Using a list also has the benefit of providing structure even if CSS is disabled.

Making Headlines With CSS

Headers in Web pages–marked up with h1, h2, h3, h4, h5, or h6 elements–help the reader determine the purpose of sections in content. If your header is visually stimulating, the odds are better that the section will capture your reader’s eye.


  • Heading Style Gallery– Want something a little more stylish for your content headings (h1,h2,…) than a different font or color? Try one of the heading styles listed here to spruce up your content.
  • Typography for Headlines– Improve the typography in your headlines by being more creative, give them more ‘pop’, that sort of thing.
  • Making Headlines With CSS– With a dash of design, we can utilize CSS to stylize those Web page headers to catch the reader’s eye and encourage them to read on.

CSS Shadows Techniques

A technique to build flexible CSS drop shadows that can be applied to arbitrary block elements that can expand as the content of the block changes shape.

  • -Build flexible CSS drop shadows that can be applied to arbitrary block elements that can expand as the content of the block changes shape.

    CSS Shadows

  • – Most of the existing techniques use negative margins, while this one is a really simple version wich uses relative positioning.
  • – This set of tests are based on an article found on A List Apart’s technique, but with less CSS coding.
  • CSS Drop Shadows II: Fuzzy Shadows– Picking up where Part I left off, in Part II designer Sergio Villarreal takes his standards-compliant drop-shadow to the next level by producing warm and fuzzy shadows.

    CSS Shadows

  • An improved CSS shadow technique– A very robust and easy-to-use technique for applying snazzy looking shadows using only Web technology and a few little image elements prepared beforehand.

CSS Transparency

One of the trickiest things to control, in a CSS-driven design, is the transparency of the interaction between foreground and background content.Below is a list of the best examples of the differing transparency approaches possible with CSS.

  • Partial Opacity– Placing text over an image can sometimes make it difficult to read, but with Stu Nicholls’s methods the background for the text is made ‘opaque’ using various methods of opacity (including css3) and the black text is then quite readable.

    CSS Transparency

  • Cross-Browser Variable Opacity with PNG– How to overcome flaky browser support for PNG so you can take advantage of this graphic format’s lossless compression, alpha transparency, and variable opacity.
  • Two Techniques for CSS Transparency

Various Link Techniques

  • Showing Hyperlink Cues with CSS– The CSS Guy shows us how to get the little icons next to hyperlinks that signify if that link will take you offsite, open a popup, or link to a file (as opposed to another html page). Here’s how to do it in a way that’s supported in IE7, Firefox, and Safari.
  • The ways to style visited Links– CSS offers various possibilities to make links more usable and preserve text readability at the same time. We need to differentiate visited and unvisited links, but we must keep text scannable and readable.
  • Link Thumbnail– Shows users that are about to leave your site exactly where they’re going. When that curious mouse pointer hovers over a link pointing to somewhere outside of your site, the script displays a small image of the destination page.
  • Iconize Textlinks with CSS– If you’re looking for more icons to implement, Alex provides a nice start.

The jungle is alive: Be it a collaboration between two or more authors or an article by an author not contributing regularly. In these cases you find the Noupe Editorial Team as the ones who made it. Guest authors get their own little bio boxes below the article, so watch out for these.


39 comments for „101 CSS Techniques Of All Time- Part 1
  1. outwindow on January 13th, 2008 at 10:58 pm

    Very good! look forward to next part!

  2. Praveen Vijayan on January 13th, 2008 at 11:27 pm


  3. Julio Fragoso on January 14th, 2008 at 2:26 am

    This is all good stuff !


  4. Alan on January 14th, 2008 at 9:32 am

    Nice list, one technique that I use I found at Style Meltdown, it kinda combines the using a list as a navigation and also uses an image sprite. The cool thing is that it only uses 1 image for the entire nav instead of an image for each button. Cheers and thanks for the list!

  5. Tdude on January 14th, 2008 at 9:41 am

    Nice one!
    And now an article about js and DOM tips of all times? ;)

  6. rybaxs on January 14th, 2008 at 5:52 pm

    nice technique.. now i know.. thanks!

  7. robin2008 on January 18th, 2008 at 4:51 am

    Great information for designers. i think this is going to help me a lot

  8. Humphrey on January 24th, 2008 at 9:18 am

    I thought I posted here. Your knowledge of CSS is great perhaps you might be able to help me.

    I’m having problem inserting video or picture on my blog. How do I get around that?

  9. Max on January 25th, 2008 at 6:58 am

    Hi – just wanted to say good design and blog – cu

  10. David Lano on January 25th, 2008 at 2:28 pm

    Great Post! I especially liked the css image shadow effects.

  11. on January 25th, 2008 at 2:40 pm

    Thanks for sharing your list!

  12. A hole on January 25th, 2008 at 2:42 pm

    Wow, I felt sure that there had been more than 101 CSS techniques developed throughout the vast expanses of all time.

    Usually you’d go with a title like:

    101 *best* CSS Techniques of All Time


    101 *most useful* CSS Techniques of All Time


    Some useful links anyway. Yeah, I’m an A-hole…

  13. Noupe on January 26th, 2008 at 6:08 am

    Thanks Humphrey for visiting Noupe.
    Regarding your question, it depends whether you want to insert the image inside an article or outside it.
    If you want to insert the image inside the article, all you have to do is use the code view and just add this code within the post itself.
    If you want to insert the image outside the post, you just need to edit your index.php or single.php or page.php and add the same code above, depends on where exactly you want that image to show.
    I hope that makes sense, let me know if you still find any problem with this.

  14. Ben on January 26th, 2008 at 10:11 am

    Excellent list!

  15. micheal on January 26th, 2008 at 9:14 pm

    This site really helps me in learning new things thanks for sharing

  16. Noupe on January 27th, 2008 at 8:43 am

    You’re welcome Micheal, Ben. I’m glad you always find something that could help.

  17. Blogging Squared on January 27th, 2008 at 7:21 pm

    Excellent list!

    I would have to agree with TDude – A “101 of all time” on JS/DOM would be excellent.

  18. madcows on January 27th, 2008 at 8:42 pm

    Whoaa… This site really2 helps me. Please add more Css hack or something. I realy2 need that

  19. Noupe on January 29th, 2008 at 3:01 am

    Thanks Blogging Squared, i am working on this
    right now “101 JS/DOM of all time”.

    madcows, Thanks for the feedback. I’m glad you fing usefull content here.
    I have written a CSS Hack guide, you can see it here.
    The 7 CSS Hacks that we should use

  20. phaziz on January 29th, 2008 at 2:00 pm

    thanx for this list – cool essential work!

  21. Jaison James on January 31st, 2008 at 3:00 am

    Realy useful!!!

  22. John Smith on February 3rd, 2008 at 7:46 pm

    I found this awesome site where you can browse hundreds of widgets for your website or blog.

  23. David Mackey on February 8th, 2008 at 10:36 pm

    Great article, thanks. I posted it over on the social news site InformedNetworker.

  24. Metathione on February 13th, 2008 at 8:37 pm

    great post. i liked it…

  25. RJ on February 13th, 2008 at 10:29 pm

    Can somebody explain to me why I’m reading a >>CSS<< article in about 40% of the screen width?

  26. iGadget on February 20th, 2008 at 5:22 am

    I miss the only true working and meaningful version of rounded corners…:

    cornerz for jQuery:

    it uses Canvas for creating overlays. Perfect idea and works quite easily.

  27. Tercüme bürosu on February 23rd, 2008 at 5:17 am

    Your comment contains very useful information about all thank you..

  28. Expertsforge on March 23rd, 2008 at 11:16 pm

    Gr8 tutorial.. Will be an all time reference.. I have digged it!! thanks

  29. Paulszukerman on May 23rd, 2008 at 9:13 am

    Thank you for the good articles have helped me a lot.

  30. aloja on May 23rd, 2008 at 11:03 pm

    excellent list! thanks.

  31. php-web-developer on May 24th, 2008 at 12:26 am

    So very glad I found this truly great sit

  32. Erhan on June 7th, 2008 at 3:52 pm

    Great Post. I liked the “Iconize Textlinks”. They’re very cute :)

  33. Vitaliy on June 22nd, 2008 at 12:33 pm

    Really great Techniques, especially “Rounded Corners for All” Very usefull, thanks!

  34. webmasterblog on August 5th, 2008 at 3:03 am

    thank you

  35. avinash on September 4th, 2008 at 3:14 am

    Very good i really like it coz very usefull for web-developers like me who dont know much about css techniqs.Thank you very much to noupe.

  36. wiswa on September 20th, 2008 at 7:36 pm

    great!!!this very usefull for me…

  37. CTS on October 6th, 2008 at 10:31 am

    Thanks for the great collection! Delicious’ed it. :)

  38. insicdesigns on October 14th, 2008 at 5:33 am

    nice collection.

  39. Hector Naranjo on November 1st, 2008 at 12:12 pm

    Gracias hermano no sabes cuanto me a costado encontrar estos codigos de javascript y de css, estoy haciendo mi tesis y te reseñare en ella muchas gracias de verdad