Tagged “underline”
New CSS for Styling Underlines on the Web - YouTube
We have new properties in CSS for styling underlines, as explained here by Jen Simmons.
The Contrast Triangle
Removing underlines from links in HTML text presents an accessibility challenge. In order for a design to be considered accessible, there is now a three-sided design contraint - or what I call "The Contrast Triangle". Your text, links and background colors must now all have sufficient contrast from each other. Links must have a contrast ratio of 3:1 from their surrounding text. By not using underlines, a design has to rely on contrast alone to achieve this.
Animating the underlining of multi-line text
Cassie Evans shows us how to combine background–size
, a linear-gradient
based background-image
and a keyframe animation (all in HTML and CSS) for a lovely progressive underline effect on multi-line text.
See all tags.