Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS stop text overflowing

Tags:

text

css

overflow

I'm writing a dynamic application and one problem I have is that I have text contained inside a div, and browsers behave funny when the size of the div is too small to contain the text.

Is there anyway to make the text 'cutoff' in CSS? Any text that doesn't fit, is removed.

like image 202
Tom Gullen Avatar asked Dec 18 '25 05:12

Tom Gullen


1 Answers

Use overflow: hidden

like image 183
casablanca Avatar answered Dec 20 '25 22:12

casablanca



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!