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

z index not working

Status
Not open for further replies.

richardko

Programmer
Jun 20, 2006
127
US
I have a paragraph and a div layer. i want to display the div layer on top of the paragraph without affecting the paragraph. I assigned a z-index to it but the text after the div still posts below the layer. Any idea how to fix this? Here's my example below. Thanks


Example of the text. There is a div layer behind it which displays the text and skews it.<div style="background-color:yellow;width:500px;height:500px;position:relative;top:-60px;left:35px;z-index:1;overflow: scroll;" id="dispResult"></div>take care of interpreting the type of data being used.
 
give it a higher z-index number

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
And if you want your div to hover above the paragraph and not affect the text in the paragraph (as not push it elsewhere) I suggest you use absolute positioning. That's one of the points of absolute positioning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top