Created
March 5, 2018 21:39
-
-
Save chbrandt/7f1b80b5cd63a20b04d510019376b6ae to your computer and use it in GitHub Desktop.
Define color for background (div) block in jupyter ipython
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
from IPython.display import HTML | |
style = """ | |
<style> | |
div.warn { | |
background-color: #f2f2fc; | |
border-color: #dFb5b4; | |
border-left: 5px solid #dfb5b4; | |
padding: 0.5em; | |
} | |
</style> | |
""" | |
HTML(style) |
Author
chbrandt
commented
Mar 5, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment