I need to modify my button, which contains lengthy text.
When the mouse pointer hovers over the button, I would like the long text to wrap into 2 or 3 lines so that more of it is visible. Additionally, I want the remaining text to be displayed with an ellipsis.
Something similar to this:-
original text:
This is a lengthy text that I wish to wrap within the button upon hovering, displaying it in 3 lines and ending with an ellipsis.
text inside the button (with a fixed width of 250px):
This is a lengthy text that I wan...
hovered text in the button (button height increases):
This is a lengthy text that I want to wrap within the button upon mouseover and display it in 3 lines, ending with e...
I have created a Plunkr in angularjs using the angular-material md-button
.
Due to my lack of CSS expertise, I am facing challenges in customizing my button.