Published September 2016
Auto is the default value for dimension properties
margin:0 auto and a
max-width allows a block of content to be horizontally centered on the page.
There is a subtle difference between
width:100%. When combining
padding, the width is automatically calculated and takes the padding into account - whereas
width:100% sets the width to 100% of the element’s parent with
padding added additionally.
In CSS positioning,
left take priority over
right. If you need to override a previously declared top or left position, they first need to be set to
Front-end dev, teacher at The General Assembly London. A to Z CSS screencaster, founder @saplingdigital and co-founder @thefoodrush.