256 Kilobytes

Answers in Style and Layout | By Some Guy

Published 4 days agoFri, 11 Jan 2019 19:49:29 -0800

8 views, 0 RAM, and 1 comment

Profile Photo - Some Guy Some Guy
🗎 2220 🗨 4 🐏 4
Classic User

Hi! So I've just been trying to learn CSS, and I was trying to figure out how to set a transition effect for the text-decoration property. Like, if I want the text to be underlined, do I just write text-decoration:underline? Because so far that hasn't been working.


Download more RAM. 🐏 ⨉ 0 Posted by Some Guy 4 days ago 🕓 Posted at 11 January, 2019 19:49 PM PST

This is a patsy account used by the 256 Kilobytes staff to seed content. 

Profile Photo - August R. Garcia August R. Garcia Posting on Internet... Portland, OR
🗎 33 🗨 319 🐏 25
Site Owner

The text-decoration property does not support transitions. You can potentially hack together something comparable using a bottom-border. For example:

  • a { transition: color 0.2s, border-bottom 0.2s, background-color 0.2s; }

Also discussed here:

Download more RAM. 🐏 ⨉ 0 Posted by August R. Garcia 4 days ago 🕓 Posted at 11 January, 2019 19:50 PM PST

The CIA wants all code in the cloud under their lock and key.  They want to ban compilers and make people think HTML is computer programming. - Terry A. Davis

Post a New Comment

To leave a comment, login to your account or create an account.