Monday 28 April 2014

Understand positioning in CSS

the whole complexity of positioning in css will be resolved for you if you know the box model concept. let's say when you use a div always remember the box model concept:

from the above you can see what does margin, border, padding means. specially understanding the padding and margin is very important and you can create cool effect with them.

There are three technique for positioning:

  1. use relative with absolute
  2. use floating
  3. use fixed
which I will get to them in next posts

No comments:

Post a Comment