imagej.github.io
imagej.github.io copied to clipboard
Resolve funkiness of clear include
If we `{% include clear %} on the same line as other text it appears to break the html:
When used as intended, it creates a huge amount of whitespace.. and the content
attribute is placed as content but I think there are many uses of the include
that expect the content to be the clear direction?
Should it be refactored to accept directions? Do we even need this include
?
I think the reason it behaves strangely now is because it interacts badly with the left and right sidebar elements. I'd like to get rid of this include if possible. Or if we decide we absolutely need it, we can research ways to avoid the issues described above.
Did some playing around and the clear
function is generating the extra space due to one or both of the sidebars (depending on the configuration). I originally thought that Firefox was somehow rendering this page correctly, while chrome generated the space, but this was due to different window sizes I had for the two browsers. The smaller the window the smaller the space (based on how the side menus are responding to the screen size).
This stackoverflow answer seems to be what we want to do in principle. I'm going to try it!