CSS Backgrounds and Borders
|
Property |
Description |
Values |
|
background-color |
Specifies the background color of an element |
color | transparent | initial | inherit |
|
background-image |
Specifies the background image of an element |
url | none | initial | inherit |
|
background-repeat |
Specifies how the background image should be repeated |
repeat | repeat-x | repeat-y | no-repeat | initial | inherit |
|
background-position |
Specifies the starting position of a background image |
left top | left center | left bottom | right top | right center | right bottom | center top | center center | center bottom | x% y% | x-pos y-pos | initial | inherit |
|
background-attachment |
Specifies whether the background image should scroll with the rest of the page or be fixed |
scroll | fixed | local | initial | inherit |
|
border |
Sets the width, style, and color of an element's border |
border-width border-style border-color | initial | inherit |
|
border-width |
Sets the width of an element's border |
medium | thin | thick | length | initial | inherit |
|
border-style |
Sets the style of an element's border |
none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset | initial | inherit |
|
border-color |
Sets the color of an element's border |
color | transparent | initial | inherit |
|
border-radius |
Sets the radius of an element's border corners |
length | % | initial | inherit |
Created with the Personal Edition of HelpNDoc: Protect Your Confidential PDFs with These Simple Security Measures