asp.net.ph

Skip Navigation Links

CSS Color and Background Attributes

Abakada ~ Back to Basics   CSS Attributes


Property Valid Values Sample Usage
color color { color: salmon }
background-color color | transparent { background-color: crimson }
background-image url | none { background-image: url( bgWood.jpg ) }
background-repeat repeat | repeat-x | repeat-y | no-repeat { background-repeat: no-repeat }
background-attachment scroll | fixed { background-attachment: fixed }
background-position [ position | length ] | {1,2} | [ top | center | bottom ] || [ left | center | right ] { background-position: top center }
background transparent | color || url || repeat || scroll || position { background: silver url(bgRock.jpg ) repeat-y }

See Also

Colors and Backgrounds   Using StyleSheets   W3C Cascading Style Sheet Specification   W3C HTML 4.01 Specification



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note