Jump to content

Inverting colors


Recommended Posts

Is there a CSS attribute/value to invert the background and text color? I tried using the outline-color: invert but it didn't seem to do what I was looking for. I can explicitly set the color and background-color, but I'd rather just have it invert whatever the parent's colors are. I'd rather not invert the border color, but can work around that by not having borders on the inverted div.Any help is appreciated.Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...