Add extractor and builder
Tested and working
This commit is contained in:
@ -5,14 +5,10 @@ tags: layout,intermediate
|
||||
|
||||
If the text is longer than one line, it will be truncated and end with an ellipsis `…`.
|
||||
|
||||
#### HTML
|
||||
|
||||
```html
|
||||
<p class="truncate-text">If I exceed one line's width, I will be truncated.</p>
|
||||
```
|
||||
|
||||
#### CSS
|
||||
|
||||
```css
|
||||
.truncate-text {
|
||||
overflow: hidden;
|
||||
@ -22,8 +18,6 @@ If the text is longer than one line, it will be truncated and end with an ellips
|
||||
}
|
||||
```
|
||||
|
||||
#### Demo
|
||||
|
||||
#### Explanation
|
||||
|
||||
1. `overflow: hidden` prevents the text from overflowing its dimensions
|
||||
|
||||
Reference in New Issue
Block a user