You can set the width of inline elements like
,
and
, but you won’t notice any eff
a. Width of inline elements are ignored.
b. Actually you can apply width to element if set display: inline-block;
but to see results you also should apply overflow: hidden;
.
To have all benefits of inline and block types you can use follow snippet:
display: inline-block;
width: 50%; // or px, em, etc.
overflow: hidden;
text-overflow: ellipsis;
In this case you can manage width and have text ellipsis feature.