Home and Learn: Web Design Course

CSS borders, backgrounds, margins, padding

CSS Property CSS Value
border-style dotted, dashed, solid, double, groove, ridge, inset
border-width A pixel value like 2px
border-color A colour value
background-color A colour value
background-image url('my_image_name.gif');
background-repeat repeat, repeat-x, repeat-y, no-repeat
background-position top left, top center, top right, center left, center center, center right, bottom left, bottom center, bottom right
clear left, right , both , none
float right, left , none
margin A pixel value like 5px
margin-left A pixel value like 5px
margin-right A pixel value like 5px
margin-top A pixel value like 5px
margin-bottom A pixel value like 5px
padding A pixel value like 5px

Back to the Home Page

© All course material copyright Home and Learn

Email us: enquiry at homeandlearn.co.uk