Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css hide text if too long

<div id="truncateLongTexts">
    test test test test
</div>

#truncateLongTexts {
  width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis // This is where the magic happens
}
Comment

PREVIOUS NEXT
Code Example
Css :: Disable highlighting text in CSS. 
Css :: remove underline from hyperlink 
Css :: absolute vertical position css 
Css :: font shadow css 
Css :: journalctl last 100 lines 
Css :: 1 line darkmode css 
Css :: css how to add double shadow to text 
Css :: how to center a div in css 
Css :: gradient text 
Css :: there is no tracking information for the current branch 
Css :: font awesome before css 
Css :: borders for tables in html/css 
Css :: CSS make image fill whole background 
Css :: html position absolute center 
Css :: align icon center div 
Css :: glowing text css 
Css :: Change png to white using CSS 
Css :: how to make animation stay on 100% 
Css :: css background half one color the other half another color 
Css :: css box shadow right and down 
Css :: resize logo html css 
Css :: box shadow css animation 
Css :: select box arrow hide css in ie 
Css :: center div in tailwind css 
Css :: tailwind border bottom 
Css :: hide scrolbar tailwind 
Css :: css text justify 
Css :: css full cover background image 
Css :: lato font family css 
Css :: how to hover over an individual cell in table css 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =