Skip to content

Instantly share code, notes, and snippets.

@chbrandt
Created March 5, 2018 21:39
Show Gist options
  • Save chbrandt/7f1b80b5cd63a20b04d510019376b6ae to your computer and use it in GitHub Desktop.
Save chbrandt/7f1b80b5cd63a20b04d510019376b6ae to your computer and use it in GitHub Desktop.
Define color for background (div) block in jupyter ipython
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)
@chbrandt
Copy link
Author

chbrandt commented Mar 5, 2018

<div class="warn">
 bla
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment