amberage,
@amberage@eldritch.cafe avatar

Is there an easy way to restore default behaviour in CSS?

I've got a spoiler thing going on where I make text and background black and remove text-decoration for an element. When it's hovered on, I want to restore everything to default. I.e. links should be blue again, purple when visited, underlined, etc.

Recreating all that with CSS is not only more work, but also results in inconsistent behaviour (i.e. color: purple is not the same purple as the default visited link colour, etc.).

Using color: initial; didn't work, the link was black instead of blue.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • CSS
  • normalnudes
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Durango
  • Youngstown
  • slotface
  • thenastyranch
  • love
  • kavyap
  • GTA5RPClips
  • modclub
  • khanakhh
  • megavids
  • ngwrru68w68
  • everett
  • osvaldo12
  • rosin
  • ethstaker
  • Leos
  • anitta
  • cubers
  • tacticalgear
  • cisconetworking
  • provamag3
  • tester
  • JUstTest
  • All magazines