Top CSS Tips
Category: CSS | 1,307 views | Add a Comment |
-
Use
Reset.CssWhen it comes to rendering CSS styles, browsers like Firefox and Internet Explorer have different ways of handling them.
reset.cssresets all fundamental styles, so you starts with a real blank new stylesheets.Here are few commonly used
reset.cssframeworks - Yahoo Reset CSS, Eric Meyer’s CSS Reset, Tripoli -
Use Shorthand CSS
Shorthand CSS gives you a shorter way of writing your CSS codes, and most important of all - it makes the code clearner and easier to understand.
Instead of creating CSS like this
- .header {
- background-color: #fff;
- background-image: url(image.gif);
- background-repeat: no-repeat;
- background-position: top left;
- }
It can be short-handed into the following:
- .header {
- background: #fff url(image.gif) no-repeat top left
- }
More - Introduction to CSS Shorthand, Useful CSS shorthand properties
-
Understanding
ClassAndIDThese two selectors often confuse beginners. In CSS,
classis represented by a dot “.” whileidis a hash ‘#”. In a nutshellidis used on style that is unique and don’t repeat itself,classon the other side, can be re-use. Read more…- Top CSS Resources List
- What is CSS Framework
- Top 100 CSS Tips
- CSS tricks
- How to create a good css
- CSS4 SELECTORS
- CSS Rollover Tips
- 100+ CSS Tutorials
- 150+ CSS Samples
- Top One Line Css Tips



