background | |
Syntax: background: background-color | background-image | background-repeat | background-attachment | background-position |
<style type="text/css"> .demo1 { background: #00FF00 url("../images/logo.gif") repeat-x; width: 200px; border: 1px solid; height: 50px; } </style> <div class="demo1"></div> |
|
<style type="text/css"> .demo2 { background: #00FF00 url("../images/logo.gif") 100% 50% repeat-x scroll; width: 200px; border: 1px solid; height: 50px; } </style> <div class="demo2"></div> |