3 images in the background property?

Discussion in 'CSS' started by FunkyFresh, Aug 9, 2010.

  1. #1
    I am trying to do a nav bar that has curvy edges on each side. I want the middle part of the button to be extend-able however.

    [​IMG]

    Here is the code i have so far
    Any help would be appreciated
     
    FunkyFresh, Aug 9, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    radiant_luv, Aug 9, 2010 IP
  3. GeneM

    GeneM Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could also try use CC3 to add rounded corners. This is the easiest solution. This method doesn't work on older browsers (which will show the buttons square).

    CSS
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    Code (markup):
    Source
    http://www.css3.info/preview/rounded-border/

    Alternatively you could use a background image on these 2 elements: the LI and the A. Where the LI provides the the right side and background of the button and the A the left side of the button. The buttons won't be flexible in height this way. This is called the sliding door technique and documented quite well on ALA (A List Apart).

    Sliding doors
    http://www.alistapart.com/articles/slidingdoors2/
     
    GeneM, Aug 10, 2010 IP
  4. FunkyFresh

    FunkyFresh Peon

    Messages:
    499
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The best way I found was using css3 to display multiple backgrounds but its not supported by all browsers yet.

    I tried sliding doors on my own but didnt turn up exactly as I wanted, I am going to check out the article and wish for better luck second time around!
     
    FunkyFresh, Aug 10, 2010 IP
  5. Tom_Lee

    Tom_Lee Peon

    Messages:
    192
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you can get it from google.
     
    Tom_Lee, Aug 10, 2010 IP