I have various with dimensions (defined with CSS) height:50px, width:100px.
I want the text inside each to break approximately in half (only if it is too long) and expand the if necessary, in order to fit in it.
Now, when the text length requires extra space, breaks into 3 or more lines and overflows the , but I don't want neither to hide nor scroll the text.
You can see the code here:
CSS:
div {
font-size: 20px;
border: 1px solid;
width: 100px;
height: 50px;
}
html:
<div>Lorem ipsum dolor sit amet</div>
tags if you'd like? – Eric Goncalves Mar 04 '13 at 21:36
tags while processing the text in PHP. Thank you! But I don't how to give you credit – Jim Tsatsos Mar 05 '13 at 16:20