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

Div element on top of a img question

Status
Not open for further replies.

okiiyama

IS-IT--Management
Jan 3, 2003
269
US
I have an image that has z-index: -1 and then a div element on top of that image z-index:. The div tag has cursor: pointer, an onClick function and a onMouseOver function. When there is text in the div tag everything is okay, but once the text is removed, it is as if the div tag is not there. The cursor does not change to the pointer and the onClick and onMouseOver functions don't occur. Is there an attribute I could use similar to empty-cells: show; ?

Thanks.
 
What does define this div? If there is no set width or height and it has no content, what else than being 0x0 block do you expect?
 
Sorry, I forgot to mention that the dimension properties are set in CSS. Anyways, I may have solved the problem. I added in the css class for the div in question, 2 lines:
Code:
background-image: url(images/trans_bg.gif);
background-repeat: repeat;

For now, that seems to be working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top