I Smell CSS Trouble

I had a slight discussion with a friend of mine, RandyCram, we were discussion the best and easiest way to remember the css properties “margin” and “padding”.  He came up with this idea of when he has “Trouble” think of “TRBL” for short.  Simply the “margin” css property works like so:

margin: TOP RIGHT BOTTOM LEFT;

Thats how we got the idea, when your having “Trouble” with margins, just think of the word trouble and remember “TRBL”.  Great practice for any css designer.

Leave a comment