Skip to Content
CSS: The Definitive Guide, 3rd Edition
book

CSS: The Definitive Guide, 3rd Edition

by Eric Meyer
November 2006
Intermediate to advanced
538 pages
17h 6m
English
O'Reilly Media, Inc.
Content preview from CSS: The Definitive Guide, 3rd Edition

Appendix A. Property Reference

Visual Media

background

This is a shorthand method to express all of the individual background properties within a single declaration. Use of this property is generally encouraged over the individual properties, as it has a slightly better support profile in older browsers and doesn’t take as long to type.

Values:

[ <background-color> || <background-image> || <background-repeat> || <background-attachment> || <background-position> ] | inherit

Initial value:

Refer to individual properties

Applies to:

All elements

Inherited:

No

Percentages:

Values are allowed for <background-position>

Computed value:

See individual properties

background-attachment

This property defines whether the background image scrolls along with the element when the document is scrolled. This can be used to create “aligned” backgrounds; see Chapter 9 for more details.

Values:

scroll | fixed | inherit

Initial value:

scroll

Applies to:

All elements

Inherited:

No

Computed value:

As specified

background-color

This sets a solid color for the background of the element. This color fills the content, padding, and border areas of the element, extending to the outer edge of the element’s border. Borders that have transparent sections, such as dashed borders, will show the background color through the transparent sections.

Values:

<color> | transparent | inherit

Initial value:

transparent

Applies to:

All elements

Inherited:

No

Computed value:

As specified

background-image

This places an image ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

CSS: The Definitive Guide, 4th Edition

CSS: The Definitive Guide, 4th Edition

Eric Meyer, Estelle Weyl

Publisher Resources

ISBN: 0596527330Errata Page