HTML Background Code

The source code (on the left) results in the HTML background (on the right).

Example Code

<!-- Codes by HTMLmagics -->
<div style="background:#eee url(http://htmlmagics.blogspot.com//images/backgrounds/background-image-2.gif) repeat fixed;
        overflow:scroll;
        width:200px;
        height:100px;
        border:1px solid black;">
<p>This example sets all the background properties with one property - the 'background' property. This keeps the code shorter and easier to read.</p>
</div>
<p><a  style="font-size:11px;color:#999;" href="http://htmlmagics.blogspot.com//backgrounds/">Backgrounds</a></p>

 

Result

 


This example sets all the background properties with one property - the 'background' property. This keeps the code shorter and easier to read.