Jackson Xie Jackson Xie - 2 months ago 7
CSS Question

hide img in span, css

I am using kendoUI, I cannot change the html, they are generated by the framework.

I wish to remove/hide text in span and keep the image by clicking button. I cannot hide text only.

<span class="k-link">
<img></img>
menu text
</span>


Thank you

Answer

Try this,

CSS

.k-link{
    font-size: 0px;
}
Comments