HTML and CSS Reference
In-Depth Information
Backgrounds In CSS: Everything You
Need To Know
Michael Martin
Backgrounds are a core part of CSS. They are one of the fundamentals that
you simply need to know. In this article, we will cover the basics of using
CSS backgrounds, including properties such as background-
attachment. We'll show some common tricks that can be done with the
background as well as what's in store for backgrounds in CSS 3 (including
four new background properties!).
Working With Backgrounds in CSS 2
OVERVIEW
We have five main background properties to use in CSS 2. They are as
follows:
background-color: specifies the solid color to fill the background
with.
background-image: calls an image for the background.
background-position: specifies where to place the image in the
element's background.
background-repeat: determines whether the image is tiled.
 
Search WWH ::




Custom Search