How can I prevent text in a div block from overflowing in CSS?
HTML:
<div>This div contains a VeryLongWordWhichDoesNotFitToTheBorder.</div>
CSS:
div {
width: 150px;
/* what to put here? */
}
See Question&Answers more detail:os