custom text selection color

Add different custom text selection color

You may want to over-ride the default background color that appears when text is selected using the mouse. This is possible using a custom CSS class and one CSS property.

truncate cut text css code

Cut or truncate text using CSS only

You can shorten, cut, or truncate text to any visible width using CSS only code. No need to use any additional scripts for this implementation.