Monday, March 21, 2005

CSS tips and tricks, Part 2

... more excellent CSS tips at 456bereastreet.com...

1. Group selectors
2. Specify link styles in the right order
3. Clearing floats
4. Centering (centering)
5. Importing and hiding CSS
6. Giving Internet Explorer what it needs
7. How big is that box?
8. CSS coding style
9. There’s more where that came from...

- Why not comment and send in your own tip ?!?!?

Friday, March 18, 2005

CSS tips and tricks, Part 1

Great post at 456bereastreet.com.

Essential CSS tips...

1. Use CSS shorthand
2. Specify a unit unless the value is 0
3. Remember case sensitivity
4. Specifying colours
5. Eliminate element types for class and id selectors
6. Default values
7. Don’t redeclare inherited values
8. Take advantage of the cascade
9. Multiple class names
10. Use descendant selectors
11. Avoid quoting URLs

To be continued........

Thursday, March 17, 2005