#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2003
    Posts
    506
    Rep Power
    11

    using 2 background pics in css


    I would like to make a menu title bar, but one that will expand depending on the amount of text that is in the menu. so to do this I would like to have a picture at each end of the title that match the background. Is this possible. I tried setting 2 background-images, but that didn't work.

    Thanks for the help
  2. #2
  3. 4:04 Time Not Found
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2004
    Location
    Northern Virginia
    Posts
    2,273
    Rep Power
    338
    You could put all of the items into different <SPAN> tags or tables, though I don't prefer using tables for non-tabular data.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2003
    Posts
    506
    Rep Power
    11
    I thought about the table one as well, and even in creating a function for it, but there is just something about that approach that doesn't seem right. I thought that there might be a way through css styles
  6. #4
  7. 4:04 Time Not Found
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2004
    Location
    Northern Virginia
    Posts
    2,273
    Rep Power
    338
    I haven't heard of any CSS method for doing multiple images as a background, sorry.
  8. #5
  9. Thanks Johnny Hart (BC) R.I.P.

    Join Date
    May 2003
    Location
    Dallas
    Posts
    5,268
    Rep Power
    1956
    While you can't put 2 background images into an element, you can fake it. This article at A List Apart describes a method.

    cheers,

    gary
    There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

    My html and css workshop, demos and tutorials.
    Ask a better question, get a better answer.

IMN logo majestic logo threadwatch logo seochat tools logo