- June 10th, 2010
- 66 Comments
Over the last years we’ve got a pretty good understanding of what CSS does, how it works and how we can use it for our layouts, typography and visual presentation of the content. However, there are still some attributes that are not so well-known; also, CSS3 offers us new possibilities and tools that need to be understood, learned and then applied in the right context to the right effect.
In this round-up we present fresh useful articles about less-known CSS 2.1 and CSS3 properties as well as an overview of recently published CSS techniques, tools and tips for designers and web-developers. Please stay tuned: next week we will present the second part of this article, featuring fresh CSS3 techniques, tools and resources.
Learn About Obscure CSS Properties
The Little Known font-size-adjust Property1
Ever wanted to use fallback fonts on your CSS with different aspect ratios without them looking huge (or tiny)? The sparkling new CSS3
font-size-adjust property could do just that.
Demystifying CSS At-Rules 3
CSS at-rules (or @rules) are so-named because they utilize the ‘@’-character. They aren’t used as often as other CSS elements, and so it may be easy to overlook their function. If you’ve ever been confused about CSS at-rules, here’s a quick guide.
The CSS white-space Property Explained5
CSS has a pretty useful property called
white-space that often goes unnoticed among CSS beginners. You can probably live without this property for quite some time, but once you learn how to use it, it will come in very handy and you’ll find yourself going back to it over and over again.
How nth-child Works 7
nth-child is one of those rather unfortunate CSS attributes that is caught between nearly full cross-browser compatibility, except for completely zero support in IE, even IE 8. By Chris Coyier.
The CSS3 :target Pseudo-class And CSS Animations9
There are so many underused techniques that we could be applying to our designs as an enhancement layer. Let’s take a brief look into the
:target pseudo-class and a very simple CSS animation.
The space combinator 11
Combinators are an overlooked part of CSS development. Most juniors don’t even know they are making use of them, others are unaware of their full potential and let’s face it, even most professionals don’t really know about the ins and outs of css combinators. It’s all connected to that little piece of nothingness in between class names, so let’s start by taking a good look at the space (descendant) combinator.
Cross-Browser Inline-Block 13
Ah, inline-block, that elusive and oh so tempting display declaration that promises so much, yet delivers so little. An article explaining what inline-block is, how it works and what it is good for.
The Skinny on CSS Attribute Selectors 15
Single element has three attributes: ID, class, and rel. To select the element in CSS, you could use and ID selector (#first-title) or a class selector (.magical). But did you know you can select it based on that rel attribute as well? That is what is known as an attribute selector.
The Mysterious Pseudo Class in CSS17
Pseudo classes let you control the CSS of stuff in different forms, states and places easily and efficiently, without taking up too much room. CSS3 is going to introduce many new pseudo classes, and they’re going to make our lives a lot easier (if you take browser compatibility out of the equation). They help both aesthetics and usability, and can make things that were once hard easier than ever before.
CSS Opacity: A Comprehensive Reference19
This reference is going to provide a detailed overview of CSS opacity, along with some code examples and explanations to help you implement this useful CSS technique in your projects equally across all browsers. One thing that should be noted about CSS opacity is that, although it’s been in use for a number of years now, it has never been, and is currently not a standard property. It’s a non-standard technique that is supposed to be part of the CSS3 specification.
Taming Advanced CSS Selectors 23
The best way to avoid plagues spreading in your markup and keep it clean and semantic, is by using more complex CSS selectors, ones that can target specific elements without the need of a class or an id, and by doing that keep our code and our stylesheets flexible.
A Look at Some of the New Selectors Introduced in CSS324
Here is a run-down of just some of the things that is possible with CSS3 selectors. Of course, CSS3 isn’t supported at all by any IE browsers including IE8; but all latest versions of Safari, Firefox and Opera support most, if not all of them.
Useful CSS Techniques
Deal-breaker problems with CSS3 multi-columns25
“I’ve been playing around with the new multi-column properties of CSS3 (column-count, column-width, and so forth), and I’ve come to the conclusion that they’re sadly not ready to really use. I found that there’s not enough control over how the content is distributed between columns to make them reliable. I’m not sure if the browser behavior I’ve been seeing is correct or not; the spec is unfortunately not well defined enough to make it clear—at least to me—of how browsers ought to be handling some of the problems I ran across.”
Correcting Orphans with Overflow27
overflow property in CSS can be used in various ways and comes in handy when correcting bugs. Below are some tutorials that demonstrate how to clear up some common issues using the overflow property.”
CSS Sprites without Using Background Images29
” The first approach in my mind was to do the typical CSS Sprites but this requires CSS work which my client did not know much of. I wanted to give him the access to update his affiliate banners using WordPress, and the simplest thing was to let him just upload his own images and put the URL in a custom field. No CSS tweaks involved, just what he needed.”
Center Multiple DIVs with CSS31
At some point, you may have a situation where you want to center multiple elements (maybe <div> elements, or other block elements) on a single line in a fixed-width area. Centering a single element in a fixed area is easy. Just add margin: auto and a fixed width to the element you want to center, and the margins will force the element to center.
Different Stylesheets for Differently Sized Browser Windows33
Otherwise known as “resolution dependent layouts”. Single website, different CSS files for rearranging a website to take advantage of the size available. There is a W3C standard way of declaring them.
The New Clearfix Method35
The clearfix hack, or “easy-clearing” hack, is a useful method of clearing floats. The original clearfix hack works great, but the browsers that it targets are either obsolete or well on their way.
“Preloading images definitely helps users without broadband enjoy a better experience when viewing your content. In this article, we’ll explore three different preloading techniques to enhance the performance and usability of your site.”
How to Center an Absolutely Positioned Element Using CSS38
“Centering an absolutely positioned element is a CSS challenge that occurs now and then. The solutions seem obvious once I’ve done it, but I still find myself googling the problem every few months.”
Wrapping Long URLs and Text Content with CSS39
To wrap long URLs, strings of text, and other content, just apply this carefully crafted chunk of CSS code to any block-level element (e.g., perfect for <pre> tags).
Getting Buggy CSS Selectors to Work Cross-Browser via jQuery42
Although the lack of cross-browser CSS selector support has caused a number of useful CSS selectors to go almost unnoticed, developers can still manipulate styles on their pages using some of these little-used selectors through jQuery.
“Checkmark” Your Visited Links with Pure CSS 44
The goal of this tutorial is to get a check mark preceding visited links for a nice visual indicator. The article will be targeting the a:visited pseudo class, but it also includes information on the other anchor pseudo classes.
Reorganize visited links with CSS3 flexible box model46
An interesting technique that uses flexible box model (box, box-flex, box-ordinal-group), generated content (:before, :after) and :not and :first-of-type selectors to reorganize visited links on the page.
Vertical Centering 47
Vertical centering with CSS seems to be a large obsticle in the Web design world and I notice a lot of people favor <table>-based layouts when the need for vertical center arises. That’s too bad. Whilst CSS vertical center can get [very] complicated at times, I believe that learning various techniques for archiving it is beneficial and once you get a hang of it, you’ll do it just as anything else with CSS.
Robust Vertical Text Layout48
Few formatting systems today can handle vertical text layout, and most of those only lay out text in right-to-left columns. This document outlines a system that can not only handle common scripts in vertical right-to-left columns, but that can gracefully accept uncommon script combinations and left-to-right text columns. The model is described here as a CSS system, but the concepts can apply to non-CSS systems as well.
iPad Orientation CSS49
For the most part, Mobile Safari on the iPad is the same as that on the iPhone. One difference is that Webkit on the iPad honors CSS media query declarations based on orientation.
How to keep footers at the bottom of the page50
When an HTML page contains a small amount of content, the footer can sometimes sit halfway up the page leaving a blank space underneath. This can look bad, particularly on a large screen. Web designers are often asked to push footers down to the bottom of the viewport, but it’s not immediately obvious how this can be done.
Sexy CSS Buttons 51
CSS is getting quite powerful these days. It can even take the place of images in many ways, giving you a more flexible design and fewer files to work with. Imagine being able to make an ultra sexy button with just CSS, giving you complete control through code. Well, you can! And it’s not too difficult, really.
CSS Image Maps: A Beginner’s Guide53
While they may not be used as often as they once were in the heyday of table based web design, image maps can still be quite useful in situations that call for it. Unfortunately, for beginners, achieving this with CSS alone, can be a difficult concept to grasp. In this tutorial, we’re not only going to get you up to speed on how to create a CSS image map, but, we’re also going to take it a couple steps further and add hover states to our image map using a CSS background image sprite, as well as a “tooltip” like popup.
Make All Links Feel Subtly More Button-Like 55
On this current design of CSS-Tricks, you may have noticed how all links bump themselves down one pixel as you click them. This tutorial displays how to implement this technique.
“I figured that it would be a good idea to show the content of a footnote as soon as you indicate that you are interested in the footnote. Namely, when you move the cursor over the footnote symbol. This allows footnotes to work on devices that don’t support mouse hovering, because you can still jump to a footnote via its link, but it removes the necessity of having to click on a footnote link for most people.”
Progressive enhancement: pure CSS speech bubbles 59
Ultimate IE6 Cheatsheet: How To Fix 25+ Internet Explorer 6 Bugs63
Only if you must: an extensive article featuring common problems, issue and solutions for dealing with Internet Explorer 6.
Useful CSS Tools, Tips and Advice
CSS deployment: combine CSS files into a master file 65
A handy PHP script which reads a directory with css files and combines them automatically into one master stylesheet. No matter how many files you add while developing, before launch you can use a build script that merges them all so you can save HTTP requests.
CSS efficiency tip: use a single stylesheet file for multiple media67
The way most people link CSS intended for different media types, such as screen, print, or handheld, is to use multiple files. The files are then linked either through link elements with a media attribute or through @import statements with one or more media types specified.
Efficiently Rendering CSS 69
How efficient is the CSS that we write, in terms of how quickly the browser can render it? This is definitely something that browser vendors care about (the faster pages load the happier people are using their products). Let’s cover some of the big ideas they present, and then discuss the practicalities of it all.
CSS Buttons is the Plug and Play Solution for Web Designers and Developers 74
CSS Buttons will allow designers to quickly implement consistently looking, cross-browser, buttons regardless of the element used. CSS Buttons is a plug n’ play solution for Multilingual, CMS, Blogs, and similar web sites faced with dynamic content challenges.
Website Colors Finder76
This neat little tool extracts any color information, no matter if inline CSS, CSS files via import or link, and even if you have a master CSS file with references to other css files – mooColorFinder reads it out.
CSS Inliner Tool78
If you’ve ever sent an email campaign, you know that if your CSS is not coded inline, it is likely to get stripped out by email clients, which can make your email design pretty funky looking. Writing CSS inline can be time consuming, and repetitive. MailChimp has a CSS inline conversion tool built right in that will automatically transform all of your local styles into inline styles.
CSS3 is one of the coolest thing in the web designer world and has been a long time coming. With CSS3 you can save time designing and slicing fancy layouts. CSS3 has features like text/box shadow, rounded corners,and animations. These just a few of the many CSS3 features has to offer you.
HTML5 and CSS3 Web App Prototyping99
Web developers often tweak style according to the device (desktop, tablet, mobile) in use. ProtoFluid makes intial tweaking much quicker.ProtoFluid requires a freshly updated, standards compliant, modern browser.
CSS 2.1 and CSS 3 Help Cheat Sheets (PDF)103
Smashing Magazine’s cheat sheets that will help you quickly look up the right CSS 2.1-property or an obscure CSS 3 property. The style sheets contain most important properties, explanations and keywords for each property. The help sheets were created by GoSquared and released for Smashing Magazine and its readers.
Which email clients support CSS3? 105
“In this update to our existing guide to CSS support, we tested both widely implemented and experimental CSS3 properties across 24 popular desktop, web and mobile email clients. The results were mixed, but certainly surprising! If you’re planning to introduce CSS3 to email campaigns, read on: we’ve not only got a summary of which email clients display what properties, but observations and hand-picked recommendations for the style-savvy email designer.” Also check Guide to CSS support in email clients106.
Brosho Plugin: Design from built-in element selector and CSS editor108
With this Brosho Plugin you can design your markup in the browser. It is a jQuery Plugin designs with the help of a build-in element selector and CSS editor. The CSS code of the altered elements can be generated with just one click. This can be further used in your own stylesheet.
50 Useful Tools and Generators for Easy CSS Development 122
The tools have been sorted into the following categories: Grid and Layout, CSS Optimisers, CSS Menus Tools, CSS Buttons, CSS Rounded Corners, CSS Frames, CSS Sprites, CSS Tables, CSS Typography and CSS Forms.
50 Useful Coding Techniques (CSS Layouts, Visual Effects and Forms)123
We are permanently looking to collect such articles for our posts so that we can deliver the most useful and relevant content to our readers. In this post, we present an overview of useful CSS/jQuery coding tips, tricks and techniques for visual effects, layouts and web form design to help you find solutions to the problems you are dealing with or will have to deal with in future.
What about other round-ups?
- 1 http://webdesignernotebook.com/css/the-little-known-font-size-adjust-css3-property/
- 2 http://webdesignernotebook.com/css/the-little-known-font-size-adjust-css3-property/
- 3 http://www.devlounge.net/code/demystifying-css-at-rules
- 4 http://www.devlounge.net/code/demystifying-css-at-rules
- 5 http://www.impressivewebs.com/css-white-space/
- 6 http://www.impressivewebs.com/css-white-space/
- 7 http://css-tricks.com/how-nth-child-works/
- 8 http://css-tricks.com/how-nth-child-works/
- 9 http://webdesignernotebook.com/css/the-css3-target-pseudo-class-and-css-animations/
- 10 http://webdesignernotebook.com/css/the-css3-target-pseudo-class-and-css-animations/
- 11 http://www.onderhond.com/blog/work/the-space-combinator
- 12 http://www.onderhond.com/blog/work/the-space-combinator
- 13 http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/
- 14 http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/
- 15 http://css-tricks.com/attribute-selectors/
- 16 http://css-tricks.com/attribute-selectors/
- 17 http://webtint.net/tutorials/the-mysterious-pseudo-class-in-css/
- 18 http://webtint.net/tutorials/the-mysterious-pseudo-class-in-css/
- 19 http://www.impressivewebs.com/css-opacity-reference/
- 20 http://www.impressivewebs.com/css-opacity-reference/
- 21 http://perishablepress.com/press/2010/04/14/visual-walkthrough-font-face-css/
- 22 http://perishablepress.com/press/2010/04/14/visual-walkthrough-font-face-css/
- 23 http://www.smashingmagazine.com/2009/08/17/taming-advanced-css-selectors/
- 24 http://inspectelement.com/tutorials/a-look-at-some-of-the-new-selectors-introduced-in-css3/
- 25 http://zomigi.com/blog/deal-breaker-problems-with-css3-multi-columns/
- 26 http://zomigi.com/blog/deal-breaker-problems-with-css3-multi-columns/
- 27 http://www.sohtanaka.com/web-design/css-overflow-property-quick-tip/
- 28 http://www.sohtanaka.com/web-design/css-overflow-property-quick-tip/
- 29 http://www.sohtanaka.com/web-design/css-sprites-wout-background-images/
- 30 http://www.sohtanaka.com/web-design/css-sprites-wout-background-images/
- 31 http://www.impressivewebs.com/center-multiple-divs/
- 32 http://www.impressivewebs.com/center-multiple-divs/
- 33 http://css-tricks.com/resolution-specific-stylesheets/
- 34 http://css-tricks.com/resolution-specific-stylesheets/
- 35 http://perishablepress.com/press/2009/12/06/new-clearfix-hack/
- 36 http://perishablepress.com/press/2009/12/06/new-clearfix-hack/
- 38 http://www.sitepoint.com/blogs/2010/05/04/css-center-position-absolute-div/
- 39 http://perishablepress.com/press/2010/06/01/wrapping-content/
- 40 http://perishablepress.com/press/2010/06/01/wrapping-content/
- 41 http://fuelyourcoding.com/unconventional-css3-link-checking/
- 42 http://www.impressivewebs.com/buggy-css-selectors-cross-browser-jquery/
- 43 http://www.impressivewebs.com/buggy-css-selectors-cross-browser-jquery/
- 44 http://css-tricks.com/put-checkmarks-next-to-visted-links-with-pure-css/
- 45 http://css-tricks.com/put-checkmarks-next-to-visted-links-with-pure-css/
- 46 http://www.ie7nomore.com/fun/flexible2/
- 47 http://haslayout.net/css-tuts/Vertical-Centering
- 48 http://fantasai.inkedblade.net/style/discuss/vertical-text/
- 49 http://www.cloudfour.com/ipad-css/
- 50 http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page
- 51 http://blog.brandoncash.net/post/525423850/sexy-css-buttons
- 52 http://blog.brandoncash.net/post/525423850/sexy-css-buttons
- 53 http://www.noobcube.com/tutorials/html-css/css-image-maps-a-beginners-guide-/
- 54 http://www.noobcube.com/tutorials/html-css/css-image-maps-a-beginners-guide-/
- 55 http://css-tricks.com/one-pixel-shift-buttons/
- 56 http://css-tricks.com/one-pixel-shift-buttons/
- 57 http://ignorethecode.net/blog/2010/04/20/footnotes/#fnref:275.footnotes
- 58 http://ignorethecode.net/blog/2010/04/20/footnotes/#fnref:275.footnotes
- 59 http://nicolasgallagher.com/progressive-enhancement-pure-css-speech-bubbles/
- 60 http://nicolasgallagher.com/progressive-enhancement-pure-css-speech-bubbles/
- 61 http://css-tricks.com/ie-css-bugs-thatll-get-you-every-time/
- 62 http://css-tricks.com/ie-css-bugs-thatll-get-you-every-time/
- 63 http://www.virtuosimedia.com/tutorials/ultimate-ie6-cheatsheet-how-to-fix-25-internet-explorer-6-bugs
- 64 http://www.virtuosimedia.com/tutorials/ultimate-ie6-cheatsheet-how-to-fix-25-internet-explorer-6-bugs
- 65 http://reinholdweber.com/css/css-deployment-simple-php-snippet-to-combine-css-files/
- 66 http://reinholdweber.com/css/css-deployment-simple-php-snippet-to-combine-css-files/
- 67 http://www.456bereastreet.com/archive/201002/css_efficiency_tip_use_a_single_stylesheet_file_for_multiple_media/
- 68 http://www.456bereastreet.com/archive/201002/css_efficiency_tip_use_a_single_stylesheet_file_for_multiple_media/
- 69 http://css-tricks.com/efficiently-rendering-css/
- 70 http://glazman.org/JSCSSP/
- 71 http://cssdesk.com/
- 72 http://ajaxian.com/archives/cssdesk-a-playground-for-css
- 73 http://cssdesk.com/
- 74 http://www.cssbuttons.net/index.php
- 75 http://www.cssbuttons.net/index.php
- 76 http://www.artviper.net/website-tools/colorfinder.php
- 77 http://www.artviper.net/website-tools/colorfinder.php
- 78 http://www.mailchimp.com/labs/inlinecss.php
- 79 http://www.mailchimp.com/labs/inlinecss.php
- 80 http://52framework.com/home/
- 81 http://52framework.com/home/
- 82 http://css-tricks.com/examples/ButtonMaker/#
- 83 http://css-tricks.com/examples/ButtonMaker/#
- 84 http://border-radius.com/
- 85 http://border-radius.com/
- 86 http://csscorners.com/
- 87 http://csscorners.com/
- 88 http://css3generator.com/
- 89 http://css3generator.com/
- 90 http://css3please.com/
- 91 http://css3please.com/
- 92 http://www.westciv.com/tools/gradients/
- 93 http://www.westciv.com/tools/gradients
- 94 http://border-image.com/#%7B%22src%22%3A%22http%3A%2F%2Fwww.w3.org%2FTR%2Fcss3-background%2Fborder.png%22%2C%22linkBorder%22%3Atrue%2C%22borderWidth%22%3A%5B0%2C0%2C0%2C0%5D%2C%22imageOffset%22%3A%5B34%2C27%2C27%2C27%5D%2C%22setRepat%22%3Afalse%2C%22repeat%22%3A%5B%22repeat%22%2C%22repeat%22%5D%2C%22scaleFactor%22%3A3%2C%22setRepeat%22%3Atrue%7D
- 95 http://border-image.com/#%7B%22src%22%3A%22http%3A%2F%2Fwww.w3.org%2FTR%2Fcss3-background%2Fborder.png%22%2C%22linkBorder%22%3Atrue%2C%22borderWidth%22%3A%5B0%2C0%2C0%2C0%5D%2C%22imageOffset%22%3A%5B34%2C27%2C27%2C27%5D%2C%22setRepat%22%3Afalse%2C%22repeat%22%3A%5B%22repeat%22%2C%22repeat%22%5D%2C%22scaleFactor%22%3A3%2C%22setRepeat%22%3Atrue%7D
- 96 http://code.google.com/p/minify/
- 97 http://code.google.com/p/minify/
- 98 http://rendera.heroku.com/
- 99 http://protofluid.com/
- 100 http://protofluid.com/
- 101 http://html5readiness.com/
- 102 http://html5readiness.com/
- 103 http://www.smashingmagazine.com/2010/05/13/css-2-1-and-css-3-help-cheat-sheets-pdf/
- 104 http://www.smashingmagazine.com/2010/05/13/css-2-1-and-css-3-help-cheat-sheets-pdf/
- 105 http://www.campaignmonitor.com/blog/post/3107/css3-support-in-email-clients/
- 106 http://www.campaignmonitor.com/css/
- 107 http://www.campaignmonitor.com/blog/post/3107/css3-support-in-email-clients/
- 108 http://www.appsheriff.com/web-apps/script/brosho-plugin-design-from-built-in-element-selector-and-css-editor/
- 109 http://www.appsheriff.com/web-apps/script/brosho-plugin-design-from-built-in-element-selector-and-css-editor/
- 110 http://caniuse.com/
- 111 http://caniuse.com/
- 112 http://primercss.com/index.php
- 113 http://primercss.com/index.php
- 114 http://css-infos.net/
- 115 http://css-infos.net/
- 116 http://www.maxdesign.com.au/articles/font-stacks/
- 117 http://www.maxdesign.com.au/articles/font-stacks/
- 118 http://www.maxdesign.com.au/articles/css-reset/
- 119 http://www.maxdesign.com.au/articles/css-reset/
- 120 http://couchware.ca/webble/
- 121 http://couchware.ca/webble/
- 122 http://speckyboy.com/2009/07/15/50-useful-tools-and-generators-for-easy-css-development/
- 125 http://polldaddy.com/poll/3327200/
- 126 http://polldaddy.com/features-surveys/