/ Published in: CSS

In original Shea Enhancement, image had higher z-index than drop-down menu items. Changing z-index of entire H1 made text appear above image in some browsers. Could not change z-index of menu items.
Added an extra span tag and two classes to the mix. The new span allows the text to be pushed further back in the z-index.
Added an extra span tag and two classes to the mix. The new span allows the text to be pushed further back in the z-index.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
HTML: <H1 id="overall-id" title="Text of the Title"> <SPAN class="title-ir-image"></SPAN> <SPAN class="title-ir-text">Text of the Title</SPAN> </H1> #overall-id {width: 300px; height: 100px; position: relative; } #overall-id span{ background: url(http://#) no-repeat; position: absolute; width: 100%; height: 100%; } span.title-ir-image {z-index:-1;} span.title-ir-text {z-index:-999;}
Comments
