Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS background-image definition

Browser support
IEFFOpSaf

Type:

Syntax

background-image: <url>

Description

The background-image property defines the background image that will show behind the content of a region on the page.

Values

Value Description
none The default value. No background image set.
url(<url>) The URL to the image. For example "background-image:url(image.gif);"

 See Also

background, background-attachment, background-color, background-position and background-repeat.

Example

[Try this example yourself]
<style type="text/css">
.repeat1

  background-image: url(http://www.glubase.com/images/glubase2.gif); 
}
</style>
<div class="repeat1">
    <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
</div>

Output













  • Comments

No comments added.