Wednesday, August 16th, 2017
Ever wondered how you can stop underlines going over the top of descenders i.e. a word with letters that hang down… such as… empathy?
Underlined, that word looks like this empathy
In Chrome and Firefox it’s now possible! With text-decoration-skip…
.underline {
text-decoration: underline;
text-decoration-skip-ink: auto;
}
The same word empathy now looks like this empathy
Enjoy.
Tags: CSS, Decenders, decorations, styling, Text, text-decoration, text-decoration-skip
Posted in CSS | No Comments »
Friday, December 11th, 2015
A jQuery method to remove text orphans from any element you declare. Light-weight and easy to use!
$(function() {
unorphan($('p, h1, h2, h3, h4'))
});
Tags: jQuery, orphans, Text
Posted in jQuery | No Comments »