Skip to content

Instantly share code, notes, and snippets.

@Potherca
Last active February 18, 2024 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Potherca/3a1bcdb58326128f0a13b1424f14a7f4 to your computer and use it in GitHub Desktop.
Save Potherca/3a1bcdb58326128f0a13b1424f14a7f4 to your computer and use it in GitHub Desktop.
Can `!important` be used as an ID or class? YES IT CAN! HTML5LOLZFTW! https://dabblet.com/gist/3a1bcdb58326128f0a13b1424f14a7f4
/**
* Can `!important` be used as an ID or class? YES IT CAN! HTML5LOLZFTW!
*
* Visit either:
* - https://gist.github.com/Potherca/3a1bcdb58326128f0a13b1424f14a7f4
* - http://dabblet.com/gist/3a1bcdb58326128f0a13b1424f14a7f4
*/
div {
color: lime !important;
}
#\!important {
color:blue !important;
}
.\!important {
color:red !important;
}
<div id="!important" class="!important">This is important!</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment