HTML and CSS Reference
In-Depth Information
NEW PROPERTY: BACKGROUND BREAK
In CSS 3, elements can be split into separate boxes (e.g. to make an inline
element span across several lines). The
background-break
property
controls how the background is shown across the di
"
erent boxes.
The possible values are:
•
Background-break: continuous;
: the default value. Treats the
boxes as if no space is between them (i.e. as if they are all in one box,
with the background image applied to that).
•
Background-break: bounding-box;
: takes the space between
boxes into account.
•
Background-break: each-box;
: treats each box in the element
separately and re-draws the background individually for each one.
CHANGES TO BACKGROUND COLOR
The
background-color
property has a slight enhancement in CSS 3. In
addition to specifying the background color, you can specify a “fall-back
color” that is used if the bottom-layer background image of the element
cannot be used.
This is done by adding a forward slash before the fall-back color, like so:
background-color: green / blue;