Last active
January 3, 2020 22:04
-
-
Save PTwr/22e7ea1d6c8daedcff68b05df5d60c95 to your computer and use it in GitHub Desktop.
force image into drilldown chart description
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
span.highcharts-drilldown-axis-label:nth-child(1)::before { | |
content: ''; | |
height: 24px; | |
width: 24px; | |
background: url(assets/images/nations/ussr.png); | |
display: block; | |
background-size: contain; | |
} | |
span.highcharts-drilldown-axis-label:nth-child(2)::before { | |
content: ''; | |
height: 24px; | |
width: 24px; | |
background: url(assets/images/nations/usa.png); | |
display: block; | |
background-size: contain; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
based on https://stackoverflow.com/questions/6668577/using-before-css-pseudo-element-to-add-image-to-modal