background

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>
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +