background preloader

Programming

Facebook Twitter

CSS Tools: Reset CSS. The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on. The general reasoning behind this was discussed in a May 2007 post, if you're interested. Reset styles quite often appear in CSS frameworks, and the original "meyerweb reset" found its way into Blueprint, among others. The reset styles given here are intentionally very generic. There isn't any default color or background set for the body element, for example. I don't particularly recommend that you just use this in its unaltered state in your own projects. It should be tweaked, edited, extended, and otherwise tuned to match your specific reset baseline. Fill in your preferred colors for the page, links, and so on. In other words, this is a starting point, not a self-contained black box of no-touchiness. If you want to use my reset styles, then feel free!

Previous Versions v1.0 (200802) Acknowledgments. CSS shorthand reference - Web Education Community Group. This short article covers the various bits of CSS shorthand you'll encounter in your day to day work. Border border allows you to set border width, style and, color all in one single property. So for example: border: 1px solid black; is equivalent to the following three rules: border-width: 1px; border-style: solid; border-color: black; You can also break these down further into even more specific rules, for a single border of the element it is applied to, like so: border-left: 1px solid black; border-right: 1px solid black; border-top: 1px solid black; border-bottom: 1px solid black; or even: border-left-width: 2px; border-left-style: solid; border-left-color: black; You will very rarely want to go this granular; you will probably use simply border or border-left/right-top-bottom in most cases.

Margin, padding, outline Shorthand for margin, padding, and outline all works in the same way. Such a rule could also be written as: These types of property can take less than four values too, as follows: CSS Reference. HTML Reference. Smashing Magazine — For Professional Web Designers and Developers. The W3C Markup Validation Service.