Is it possible to set an image as a border

Discussion in 'CSS' started by AuctionFreak, Jan 31, 2007.

  1. #1
    Instead of using a fixed border, is it possible to set an image as the border by editing the style.css
     
    AuctionFreak, Jan 31, 2007 IP
  2. the_pm

    the_pm Peon

    Messages:
    332
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yep. Set the image as a repeating background on the container in question, and add padding to that container to accommodate the image you're repeating. If you need to do this on all four sides, you might need to nest four containers to do it, and then apply all four sides of padding to the innermost container.

    When CSS3 is approved, released and supported, you'll be able to attack multiple backgrounds to a single object. For now, nesting is necessary.
     
    the_pm, Jan 31, 2007 IP