i am trying to get the following code to work on an androind 2.1 phone (HTC Sense UI):
h1 {
font-size: 14px;
font-weight: bold;
color: #FFF;
on Android 2.2 and 4, I use a line height greater than the font size (always em) with a display type "-webkit-box" and a vertical orientation.
Here is an example:
.myClass{
display : -webkit-box;
-webkit-box-orient : vertical;
text-overflow : ellipsis;
-webkit-line-clamp : 3;
overflow : hidden;
font-size : 0.9em;
line-height : 1.2em;
}