The CSS reference
"background" - css property (v. css 1)
- The 'background' property is a shorthand property for setting all the individual background properties at the same place.
- Look at each of background properties: 'background-color' , 'background-image' , 'background-repeat' , 'background-attachment' and 'background-position' )
- Initial value: Not defined for shorthand properties
- The property is not inherited
- HTML usage: all elements
-
Browsers that support the background - property :
Property "background" example:
<html>
<head>
<style type="text/css">
body {
background: #cdcdcd url(images/Trophy.png) repeat-y center;
}
</style>
</head>
<body>
</body>
</html>
Javascript access:
// To SET values ([o] is the target object)
[o].style.background="background values"
// You can not retrieve values through this property
// To get values, look at each of the background properties.
© 2010 by Finnesand Data.
All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the
correctness in the pages or source codes.
The risk of using this web-site pages or any program
codes from this website is entirely at the individual user.