+ 4
Restrict text Into box?
what if i want to restrict text to the box and the extra content should not be displayed?
5 Réponses
+ 5
use div{
overflow: hidden;
width: 200px;
background: green;
} the width is for shortening the box width to make texts go out and background for box color
+ 3
Site design by CSS and div . Sometimes it is necessary to draw their border.
+ 1
thanks mate
+ 1
only you need to fix html tag div or paragraph height less than content height and then you need to add overflow:hidden;