PSD-HTML. These Pixel perfect HTML pages will be tested on Chrome, Firefox, IE, Safari on OS X and Windows Imajine will help you create your own fan page in facebook with an eye appealing graphic banner for its welcome page Custom CMS theme building weboranje.com - showcase of inspirational web 2.0 websites
CSS3 tutorial for Multiple background

There can be circumstances where one would like to add two different overlapping backgrounds which has it own functionality such as no repeat /repeat x /repeat y.

In the example above, we have 'repeat-x' pot background overlapping no-repeat fence background and, and the magic here is we have used a single style tag.

IE users, we are sorry, you might not be able to view multiple background style used in the above placeholder because IE doesn't multiple background style and the big problem there is it just shows a blank screen.

Syntax used :

.bg
{
background-image: url(images/flower.png), url(images/bg.png) ;
background-repeat: repeat-x, no-repeat;

}


Note: Background right in front should be placed first (url(images/flower.png)) proceeded by the next in view.

As mentioned above, since IE does not recognises multiple background style tag, we might have to work around to get the similar effect by creating separate divs with a background allotted to it and use them in web pages by inserting one div into the other.

For Example: Considering this tutorial scenario, we can create separate 'div' style tags for fence and flower pot. Insert flower pot style div inside the fence div.

#fence_div
{
height:200px;
width:370px;
background:url(images/bg.png) no-repeat ;
}
 
#flower_div
{
height:200px;
width:370px;
background:url(images/flower.png) repeat-x;              
}

<div id="fence_div">
<div id="flower_div"></div>
</div>

Are you all excited to construct your own CSS3 / HTML5 website and fear that website hosting might work out expensive, you can opt for some cheap web hosting and go all bonkers

Tags: CSS3 style for multiple background, single style tag for multiple background
Bookmark and Share
HI, AM JAY, AND I IMAJINE
I am a freelance web designer and web application developer with over 7 years of result oriented experience. I am accustomed to working in a dynamic and goal oriented client environment. My strengths include the ability to visualize, personalize and create a truly unique and enthralling web presence. My passion apart from web design, logo design, Flash animation / actionscripting, CMS Customization, print and web development includes photography, game programming, tutorial development (includes Adobe Flash, Adobe Fireworks and Adobe Photoshop) and blogging.
Read more about me...
CONTACT US
Name :  
Email Address :  
 
Comments :
 
jayanthi.varma@imajine.in  |  © 2008 - 2011 Imajine.