Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Background Images in one tag

Status
Not open for further replies.

wbochar

IS-IT--Management
Mar 14, 2003
72
US
I've created a toobar using a UL and LI's that run accross the screen (display: inline;)

in each li there is a link (ahref)

I've got on each link a left edge image, middle section rerpeating image and right edge image.

the middle section is set to repeat over x

so it should look like:

--[||||||||]--

I can get it so one backround displays, but not three.

I've read that if you use the background-image with a comma seperate list of files -- you should be able to load multiple backgrounds for that element.

BACKGROUND-IMAGE: url(../interface/TOOLBAR-BTN-UP-MIDDLE.jpg),url(../interface/TOOLBAR-BTN-UP-LEFTEDGE.jpg),url(../interface/TOOLBAR-BTN-UP-RIGHTEDGE.jpg);

the same goes for the repeating and positioning

BACKGROUND-POSITION: center top,left top,right top;
BACKGROUND-REPEAT: repeat-x,no-repeat,no-repeat;

when i do this, nothing works in any browser.

is there another way to handle this? (besides a table)

wbochar


 
First, I am interested where you read that. I have never come across three backgrounds for a single element.

Second, how do you expect that to work, how is css supposed to know which background to stack over which and similar with positioning and repeating. All in all, I believe you must have read a bad referrence. Here's a much better place to learn about this:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top