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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help setting image in background

Status
Not open for further replies.

Xaqte

IS-IT--Management
Oct 4, 2002
971
US
I've got an image in a table that needs to be in the background so when the image is moved, it moves behind the table. I know this sounds a little confusing, so here is an example link:

I've fought with this alot, and I'm just shooting blanks.
Any thoughts/experience would be greatly appreciated!

X
 
You'd need to set the z-index property of the image lower than that of the table (the 'z' index is the imaginary third dimension that controls which elements appear in front of what - the lower the z-index the further 'back' in your screen that element is)

Problem being though, if you're dragging the image around and drag it 'behind' the table, then the table will have the focus, not the image and you won't be able to drag it.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
That makes sense... so I guess that I would need to reset the focus somehow with javascript, huh? I'm looking to have a simple design similar to Google Maps, but with just one image.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top