DavidLeoni / jupman

A template for online books made with Jupyter notebooks
https://jupman.softpython.org
Other
0 stars 1 forks source link

Floating images / div in slides #148

Open DavidLeoni opened 1 year ago

DavidLeoni commented 1 year ago

Define html tag data-jupman-style and during build rename it to style, so images or divs can be freely positioned in the result without going wild while editing in Jupyter

Example:

<img src="img/astropi-humidity-histogram.png" 
     data-jupman-style="position: absolute;
                        right: 1vw;
                        top: 15vh;
                        width: 47%;" >