Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Dec 2010
    Posts
    414
    Thanks
    22
    Thanked 55 Times in 55 Posts

    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

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    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.

  • Users who have thanked Sammy12 for this post:

    aaronhockey_09 (09-10-2012)

  • #3
    Regular Coder
    Join Date
    Dec 2010
    Posts
    414
    Thanks
    22
    Thanked 55 Times in 55 Posts
    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 !


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •