by Guy Routledge | Jul 23, 2014 | atozcss, News
Colour can be specified in a number of formats including keywords, hex, rgb and hsl. The color property effects the foreground colour of an element – its text colour. Colour as a value can be used in many places such as border-color, background-color, gradients,...
by Guy Routledge | Jul 16, 2014 | atozcss, News
The box model properties width, height, margin, padding and border describe the form of any box on the web. But the default sizing model makes life difficult when working out the computed width and height of an element. Instead, setting box-sizing:border-box allows...
by Guy Routledge | Jul 9, 2014 | atozcss, News
Auto is the default value for dimension properties width and height. Setting margin:0 auto and a width or max-width allows a block of content to be horizontally centered on the page. There is a subtle difference between width:auto and width:100%. When combining...
by Guy Routledge | Jul 1, 2014 | atozcss, News
Summary float can be used to wrap text around an image or create complex, multi-column layouts. When elements float, adjacent elements try to wrap around them which can result in slightly odd layouts unless the clear property has also been used where needed. Floating...