Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-10-2012, 08:35 PM   PM User | #1
aaronhockey_09
Regular Coder

 
Join Date: Dec 2010
Posts: 411
Thanks: 21
Thanked 55 Times in 55 Posts
aaronhockey_09 is an unknown quantity at this point
Question Multiple Images on 1 Div

Hey guys,
So, im trying to get something working.
I need a div that has 3 background images.
A left with no repeat
A right with no repeat
And a center that repeats.

I have everything showing up.
But is there any way to make the left and right images to display over top of the one that is centered and repeating ?

The reason im doing this is because the div needs rounded corners, but also has a gradient and 2 or 3 strokes on it. So instead of doing all that with css, i just wanted to use images.

Here is my CSS

Code:
 background: url(../images/1.png) center repeat-x, url(../images/2.png) left no-repeat, url(../images/3.png) right no-repeat;
Thanks for all the help in advance
Cheers
aaronhockey_09 is offline   Reply With Quote
Old 09-10-2012, 10:32 PM   PM User | #2
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
Maybe changing the order of the backgrounds images?

I think the first background image you define, should come out on top.

Last edited by Sammy12; 09-10-2012 at 10:36 PM..
Sammy12 is offline   Reply With Quote
Users who have thanked Sammy12 for this post:
aaronhockey_09 (09-10-2012)
Old 09-10-2012, 10:39 PM   PM User | #3
aaronhockey_09
Regular Coder

 
Join Date: Dec 2010
Posts: 411
Thanks: 21
Thanked 55 Times in 55 Posts
aaronhockey_09 is an unknown quantity at this point
Quote:
Originally Posted by Sammy12 View Post
Maybe changing the order of the backgrounds images?

I think the first background image you define, should come out on top.
Worked like a charm
Thanks so much !
aaronhockey_09 is offline   Reply With Quote
Reply

Bookmarks

Tags
background, div, image, images, multiple

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:14 PM.


Advertisement
Log in to turn off these ads.