Here is my screenshot:
and this is my following code :
<div style="background:green; width:100px; height:27px;">
This is text to be written here
My question, how to trim my text if it goes out of the div? I want my text is being trimmed like the second box. Please tell me how to do it.