Tags
HTML , XHTML , css
Asked 3 years ago
9 Jul 2021
Views 615
Arielle

Arielle posted

How do I hide the overflow text in a div ?



<div >
div have big text and i want to hide all overflow text 
</div>



How do I hide the overflow text in a div ?


Nicole

Nicole
answered Jul 9 '21 00:00

try this overflow:hidden
try to set width and height and overflow to hidden ,
this should be help to hide the overflow text in a div

<div style="height:100px;width:100px;overflow:hidden">
you can put content here 
</div>



Post Answer