Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

Thursday, July 1, 2010

101 CSS Techniques


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.



Css8 in 101 CSS Techniques Of All Time- Part 1




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 :
    Css9 in 101 CSS Techniques Of All Time- Part 1




  • 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.
    Css11 in 101 CSS Techniques Of All Time- Part 1





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.


Css3 in 101 CSS Techniques Of All Time- Part 1




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.


Css4 in 101 CSS Techniques Of All Time- Part 1




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.


Css7 in 101 CSS Techniques Of All Time- Part 1




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.



Css6 in 101 CSS Techniques Of All Time- Part 1




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:
     












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

     .equal { display:table; } .row { display:table-row; } .row div { display:table-cell; } 






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.

    Css15 in 101 CSS Techniques Of All Time- Part 1




  • - 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.

    Css16 in 101 CSS Techniques Of All Time- Part 1




  • 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.

    Css17 in 101 CSS Techniques Of All Time- Part 1




  • 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.



Css2 in 101 CSS Techniques Of All Time- Part 1

53 CSS-Techniques You Couldn?t Live Without


CSS is important. And it is being used more and more often. Cascading Style Sheets offer many advantages you don?t have in table-layouts ? and first of all a strict separation between layout, or design of the page, and the information, presented on the page. Thus the design of pages can be easily changed, just replacing a css-file with another one. Isn?t it great? Well, actually, it is.


Over the last few years web-developers have written many articles about CSS and developed many useful techniques, which can save you a lot of time ? of course, if you are able to find them in time. Below you?ll find a list of techniques we , as web-architects, really couldn?t live without. They are essential and they indeed make our life easier. Let?s take a look at 53 CSS-based techniques you should always have ready to hand if you develop web-sites. Links checked: June/11 2008.


You might want to take a look at the article Powerful CSS-Techniques For Effective Coding.



Css-techniques0000 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0001 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0002 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0003 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0004 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0005 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0006 in 53 CSS-Techniques You Couldnt Live Without


8. CSS Shadows (CSS Shadows Roundup)


Css-techniques0007 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0008 in 53 CSS-Techniques You Couldnt Live Without


10. Drop Cap ? Capital Letters with CSS


Css-techniques0009 in 53 CSS-Techniques You Couldnt Live Without


11. Define Image Opacity with CSS


Css-techniques0010 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0011 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0012 in 53 CSS-Techniques You Couldnt Live Without


14.CSS Diagrams


Css-techniques0013 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0014 in 53 CSS-Techniques You Couldnt Live Without


16. Footer Stick allows for the footer of a Web page to appear either at the bottom of the browser window or the bottom of the Web page content ? whichever is visually lowest.


Css-techniques0015 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0016 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0017 in 53 CSS-Techniques You Couldnt Live Without




Css-techniques0018 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0019 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0020 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0021 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0022 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0023 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0024 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0025 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0027 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0026 in 53 CSS-Techniques You Couldnt Live Without


29. CSS-Submit Buttons
Css-techniques0028 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0029 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0030 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0031 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0032 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0033 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0034 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0035 in 53 CSS-Techniques You Couldnt Live Without




Css-techniques0036 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0037 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0038 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0039 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0040 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0041 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0042 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0043 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0044 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0045 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0046 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0047 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0048 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0049 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0050 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0051 in 53 CSS-Techniques You Couldnt Live Without



Css-techniques0052 in 53 CSS-Techniques You Couldnt Live Without