Fresh Blurbs

CSS Box Model

As you know, in CSS box  model, you can indicate all 4 arguments together.

e.g. margin: 0px 0px 0px 0px;

But then, it is not easy to remember which argument stands for which side. Which one is top or right or left? They go around the clock but then - where does it start? I used to forget it all the time, despite many efforts to memoize.

When that happens you gotta use a trick :) And the trick was quickly found with some help of a good friend  of mine - Doug


The sequence in CSS goes like this: Top, Right, Bottom, Left or - TRBL. You can easily see what it stands for, now, don\'t you? TROU BLE

You will never forget trouble, if you don\'t want CSS trouble ;)


comments powered by Disqus