CSCI 1720
Intermediate Web
Home
Assignments
(current)
Labs
Quizzes
Resources
×
INDEX
ANIMATION
BACKGROUND
BORDER
BOX
COLUMN
COLORS
FONT
LIST
POSITIONING
PSEUDO
TRANSITIONS
TEXT
☰
Backgrounds
Properties
Values
background
background-image | background-position | background-size | background-repeat | background-attachment | background-origin | background-clip | background-color
background-image
url | gradients | none
background-position
top left | top center | top right | center left | center center | center right | bottom left | bottom center | bottom right x-% y-% x-pos y-pos
background-size
auto | cover | contain
background-repeat
repeat | repeat-x | repeat-y | no-repeat
background-attachment
scroll | fixed | local
background-origin
border-box | padding-box | content-box
background-clip
border-box | padding-box | content-box
background-color
color | transparent
Learn More
The background property in CSS allows you to control the background of any element (what paints underneath the content in that element). It is a shorthand property, which means that it allows you to write what would be multiple CSS properties in one