+ 4

Restrict text Into box?

what if i want to restrict text to the box and the extra content should not be displayed?

16th Nov 2016, 7:35 PM
nithin
nithin - avatar
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
16th Nov 2016, 7:55 PM
Sandeep Chatterjee
+ 3
Site design by CSS and div . Sometimes it is necessary to draw their border.
18th Nov 2016, 6:51 PM
Danial Sadeghi
Danial Sadeghi - avatar
+ 1
thanks mate
16th Nov 2016, 7:57 PM
nithin
nithin - avatar
+ 1
only you need to fix html tag div or paragraph height less than content height and then you need to add overflow:hidden;
6th Jan 2017, 5:33 PM
Mohammad Furqan Fazlani
Mohammad Furqan Fazlani - avatar