<div class="jspPane" style="padding: 0px; top: 0px; width: 138px;">
<ul style="display: block;">
<li class="hyperlink" >
<span class="xyz1" style="background-image:url(/Content/images/icon_link_16x7.png);"> View on Bing Maps website</span>
</li>
</ul>
</div>
////class //
ul li {
color: #137AFF;
height: 25px;
overflow: hidden;
padding-left: 5px;
padding-right: 4px;
padding-top: 4px;
text-align: left;
text-overflow: ellipsis;
width: 138px;
}
.hyperlink {
color: #13A3F7;
font-size: 12px !important;
text-decoration: underline;
white-space: nowrap;
}
My problem is I want to get an ellipsis over the text inside the innermost span. I cannot get the ellipsis on IE9 and IE8. Its works fine in Fire Fox. I tried removing span and using div instead , but it did not help. Please let me know if I am missing out anything. All help is appreciated. Thank you.
As far as I can tell, reading the msdn developer article regarding text-overflow
, you need to use -ms-text-overflow
:
ul li {
color: #137AFF;
height: 25px;
overflow: hidden;
padding-left: 5px;
padding-right: 4px;
padding-top: 4px;
text-align: left;
text-overflow: ellipsis;
-ms-text-overflow: ellipsis;
width: 138px; /* note that this width will have to be smaller to see the effect */
}
DEMO
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With