Last active
December 20, 2015 17:19
-
-
Save pjb3/6168081 to your computer and use it in GitHub Desktop.
Why is the inner div underlined?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div style="text-decoration: underline; font-weight: bold"> | |
I am underlined | |
<div style="text-decoration: none; font-weight: normal"> | |
I am not | |
</div> | |
</div> | |
</body> | |
</html> |
Even weirder, coloring persists in the line: http://bl.ocks.org/heyitsgarrett/edf088a30ceeae50eafb
@heyitsgarrett - We were going crazy yesterday because your example worked as planned, where we could not override the text-decoration.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow, super weird. Seems taking it out of the document flow helps: http://jsfiddle.net/SPCKJ/4/