I have to use title
attribute to show the entire text in case the label size decreases and forces an ellipsis
. Now the problem is my page might be accessed by touch interface users and they might not have the option to hover (apart from galaxy note users).
I was hoping someone is aware of a control within HTML5/HTML for touch devices which will toast the title text on the screen next to a div on tapping the div for complete text.
See usage of title & abuse of title tags. HTML5 has not spoken on this so far.
You might need to implement the double tab event yourself using js or use jquery doubletap
Alternatively, hover event is implemented by many mobiles devices to be fired on the first tap... fiddle
CSS
span {
width: 100px;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
span:hover {
overflow: visible;
}
HTML Code
<span>Test test test test test test</span>
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