-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Showing two graphs side by side #27
Comments
First off, you can't do this in a way that will always work, because screen sizes and resolutions vary so much. On a phone, the images will not be side by side, for instance.
What you can do, is have the images flow side by side dynamically when the space allows. Having a command that produces a <div> with a suitable class that wraps the <img> tags would be the way to go. Then you can style that with CSS to make the images float to one size. The "float" CSS property does that. This is also how you make an image float to the side of text...
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to be doing "before - after" plots side by side. It doesn't appear hugo by default lets you do anything fancy with graphics like this. I figure writing a new macro {{%figure2 src1= src2= %}} to do it right would be good - but in this modern era do you use tables? div tags? Apply some extra css. what?
also would like to "flow" text along the side of a graph (image align left or right)
(yes, I'm willing to learn enough go/hugo/templating to do this, but being too ancient to even know how to apply styles in modern is a PITA)
The text was updated successfully, but these errors were encountered: