IE text overlay on image
-
I’m getting frustrated with trying to line up an overlay on top of an image in IE, all other major browsers work well.
Here is what IE is doing:
https://s8.postimage.org/syh0lmq7p/ieoverlay.jpg
My HTML:
<div class="new-wrapper"> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'main-image', array( 'class' => 'imagemain' ) ); ?></a> <span><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span> </div>
My CSS:
.new-wrapper { float: left; width: 350px; height: 320px; margin: 0px 0px 0px 0px; display: inline; position: relative; z-index: 5; font-size: 20px; } .new-wrapper img { border: 0px; } .new-wrapper span { background: #000000; position: absolute; top: 50%; padding: 20px; opacity: 0.9; z-index: 2; float: left; }
As you can see, IE is not being very nice to me and I’m just so confused now about what to do after reading tons of information and trying all different types of ‘fixes’.
Would appreciate any help from you experts, where am I going wrong?
Many thanks.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘IE text overlay on image’ is closed to new replies.