Lets say my full text looks like:

`Hello, my name is David.`

I want a div that turns it into:

`Hello, my name i`

It's very simple, I just want the div have a width of, for example `90px`. So the rest of text doesn't show and it doesn't go to next line either.

```
.glass-text {
font-family:Tahoma, Geneva, sans-serif;
font-size:11px;
width:90px;
overflow:hidden;
height:15px;
}

```

But above css is not working, The rest of text goes to next line :

```
Hello, my name i
s David

```