samedi 5 mai 2012

CSS layout: the box model


  • Each element is a box.
  • Default width: maximum that fits into the parent element.
  • Default height: minimum that fits in all the children elements.
    • %: Defines the height in percent of the containing block.


  • Inline elements can share a line. Examples: <em>, <strong>, <input>, <select>, <img>. They have no margins or paddings.



Aucun commentaire:

Enregistrer un commentaire