Truncate text
How do I make an truncate text?
This is sad having to do it this way.. What is a truncate text? How do you make a truncate text? This script and codes were developed by Ben Babics on 01 October 2022, Saturday.
Truncate text - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>truncate text</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <p>normal text <span class="hidden">this should be hidden text</span> and no one should be able to see it.</p>
</body>
</html>
Truncate text - Script Codes CSS Codes
/* how it's done :( is there a better way? */
.hidden { display: inline-block; position: relative; overflow: hidden; padding-right: 10px; width: 0px; height: 10px; line-height: 10px; color: transparent; text-indent: -99999999px;
}
.hidden:after { position: absolute; top: 0; right: 0; text-indent: 0; content: "..."; color: #444;
}
/* how it should be done */
.truncate { width: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
Developer | Ben Babics |
Username | benbabics |
Uploaded | October 01, 2022 |
Rating | 3 |
Size | 2,028 Kb |
Views | 12,144 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
A Pen by Ben Babics | 2,957 Kb |
Quikly Network UI Layout | 3,542 Kb |
Angular responsive table directive | 1,846 Kb |
LabNetwork Form Validation | 4,609 Kb |
AngularJS Multiple Directives Sharing Model | 3,248 Kb |
AngularJS Directive - Accordion | 3,264 Kb |
AngularJS extend Base Controller | 2,216 Kb |
Angular Directive Scope | 3,501 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Simple personal profile | Miroot | 2,856 Kb |
Board Site | IndianaLuft | 10,542 Kb |
Base-Style | Daniel_gooss | 2,614 Kb |
After America | Jonathangarner | 2,686 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 Kb |
Shopping List | Markmurray | 6,015 Kb |
OnScreenAction | Ozgursagiroglu | 2,647 Kb |
Scifi-style Interative Form | Aaronchuo | 4,566 Kb |
Flower expansion | Sreucherand | 3,425 Kb |
Fluid Grid 12 | Alexoliverwd | 2,309 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!