CSS tips and tricks

clipped from www.blogherald.com
1. Size text without using pixels

body { font-size: 62.5% }

p { font-size: 1.2em; line-height: 1.5em; }
2. Make your code easy to read

h1 {}
h1#logo { font-size: 2em; color: #000; }
h2 {}
h2.title { font-size: 1.8em; font-weight: normal; }
3. Separate code into blocks
/* Structure */
/* Typography */
/* Links */
/* Lists, images, etc. */
4. Stop using so many divs!
5. Style everything at once

* { margin: 0; padding: 0; }

Related Posts:

  • No Related Posts
This entry was posted in Web Development. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *