Play With Text
- Sometimes we want to underline with a nice dotted or dashed line instead of
a solid one. Since there is no option for that, we settle for
border-bottom. But border-bottom is not a good solution if
the text you are underlining wraps.
- CSS3 specified not one but three new properties for text decoration
text-decoration-color, text-decoration-line, and text-decoration-style which can be
shorthanded into the good old text-decoration.
- You can use those to style underline, overline, even make text blink, and
more. As of April 2015 only Firefox supports this property, but you can enable
“experimental web platform features” to use it on Chrome.
No comments:
Post a Comment