Reputation: 17082
I have a div with width set to 500px.
I want the text to be stretched so that it can fit the whole div.
How can this be achieved (if possible) in css ?
Upvotes: 0
Views: 1993
Reputation: 17082
I have found what I was looking for. I can achieve the stretching with the css property:
letter-spacing
Upvotes: 1
Reputation: 19859
Set padding
to 0
:
div {padding: 0}
If there is something in your div, like <div><p>...</p></div>
, add:
div > p {
padding:0;
margin:0;
}
Upvotes: 0