Padding the margin: CSS Cheatsheet


This CSS cheat sheet is gonna save me a couple of Google searches next time I start fiddling around with my layout:

margin:
Sets the size of the overall margin of an element. Negative values are permitted, but exercise caution. Multiple values start from the top and go clockwise.
H1 {margin: 2em;}
P {0% 5% 0% 5%;}

(from Brett Merkey’s CSS Cheatsheet)

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Furl
  • Ma.gnolia
  • NewsVine
  • Reddit
  • TailRank

If you're new here, you may want to subscribe to my RSS feed or receive updates via email. Thanks for visiting!

0 Responses to “Padding the margin: CSS Cheatsheet”


  1. No Comments

Leave a Reply