DevelopPHP
home Forum gear home

Libraries book

HTML Library CSS Library JavaScript Library PHP Library

Videosbook

PHP and MySQL JavaScript HTML and CSS Vector and 3D Flash Actionscript Android Dev Miscellaneous

Resourcesbook

Website Hosting
CSS background-image example   Share / Like

The CSS background-image property is used to specify the URL to an image resource to use as an HTML element's background. In CSS3 this property receives an upgrade allowing you to place multiple background images into one element, see the related examples below for that.

CSS CODE EXAMPLE
<style type="text/css">
#myID {
    background-image:url(myBG.jpg);
    width:480px;
    height:230px;
    padding:10px;
}
</style>
<div id="myID">div content ...</div>
 
div content ...

Possible Values:

url()
A reference to an image file on your website server using a relative path, or full path domain referencing.

 

Related Examples and Pages:

Video Tutorial: CSS3 Multiple Background Images For HTML Elements Tutorial
Create whole page backgrounds for your web documents

 

Home   •   Terms of Use   •   Developer Forums   •   T-Shirts   •   RSS   •   Classroom Chalkboard   •   Donate   •   Top ↑
Popular In PHP / MySQL E-Commerce Store Production
Social Network Website Building
Image Upload / Photo Processing
CMS Software Programming
Mass Email Systems
Magic XML Data
Search Programming
Popular In JavaScript JSON Programming
Ajax Programming
Animating Elements
WYSIWYG Programming
Date/Time Programming
DOM Scripting
Object Reference
Popular In HTML Canvas Element
New Form Elements
Audio Element
Video Element
Drag and Drop
Event Handling
Element Grouping
Popular In CSS Custom Font Embedding
Dynamic Fit Backgrounds
Theatre Mode
Box Overlays
CSS Level 1 Properties
CSS Level 2 Properties
CSS Level 3 Properties
©2013 DevelopPHP   |   Navigate to related domains HTML5