CSS borders, backgrounds, margins, padding

CSS borders, backgrounds, margins, padding


CSS PropertyCSS Value
border-styledotted, dashed, solid, double, groove, ridge, inset
border-widthA pixel value like 2px
border-colorA colour value
background-colorA colour value
background-imageurl('my_image_name.gif');
background-repeatrepeat, repeat-x, repeat-y, no-repeat
background-positiontop left, top center, top right, center left, center center, center right, bottom left, bottom center, bottom right
clearleft, right , both , none
floatright, left , none
marginA pixel value like 5px
margin-leftA pixel value like 5px
margin-rightA pixel value like 5px
margin-topA pixel value like 5px
margin-bottomA pixel value like 5px
paddingA pixel value like 5px

Comments