256 Kilobytes

Answers in Style and Layout | By Some Guy

Published 2 months agoFri, 11 Jan 2019 19:49:29 -0800

31 views, 0 RAM, and 1 comment

Profile Photo - Some Guy Some Guy
🗎 3212 🗨 40 🐏 26
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.

Thanks!

Download more RAM. 🐏 ⨉ 0 Posted by Some Guy 2 months 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
🗎 80 🗨 556 🐏 98
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 2 months 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

Very nice. [info]

Recommended Amazon Products

Post a New Comment

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

Do you like having a good time?

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account
You can also login to an existing account or recover your password. All use of this site is subject to terms outlined in the terms of service and privacy policy.