The
background
property is a shortcut that can be used to set the
background-image
properties.
syntax
background: <background-attachment> <background_color> <background_image> <background_position> <backgound_repeat>
Both the
background-color
and
background-image
can be rendered simultaneously.
snippet
<html>
<head>
<style>
p {width:300px; height:250px; }
</style>
</head>
<body>
<form>
<p style="background: fixed blue url(bg.jpg) 5cm repeat-x;">This is a paragraph with the background style</p>
</form>
</body>
</html>