CSS Tips: 3 Features that you should know
1) is function
If you have to target multiple elements from multiple targets like this:
You can use the is function to clean the selectors.
2) text-overflow property
Let's say that you want to display only the first line of a text and if there is more, it should add "..." at the end. Like this:
You can easily do this is CSS with text-overflow.
3) background-clip property
If you want a text to look fancier, to have a color texture.
You can do this using background-clip and background-image.
Tell me what do you think about these features. :)
Leave a like if you find this useful, so others like you can benefit from it.
Thanks for reading my article!
You can also find my articles on my website:?mariusatasiei.com/blog
UI/UX Designer | Web Designer & Developer
9 个月Background-clip is top