Skip to content
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

Wrap text around a figure #37

Open
KirstieJane opened this issue Jan 18, 2018 · 1 comment
Open

Wrap text around a figure #37

KirstieJane opened this issue Jan 18, 2018 · 1 comment

Comments

@KirstieJane
Copy link
Member

KirstieJane commented Jan 18, 2018

At the moment, our about page is hacking the figure class to stop photos of our lab members being huuuuge!

What I did was just give @Islast and me 2 pictures each and then make them half wide, but you can see that it looks a bit silly on mobile.

ed86a810-742a-4292-a341-344a691b5b50

Here’s a snippet from the about markdown file:

<figure class="half">
    <img src="/images/KW_OpenCon2016_Square.jpg" alt="Kirstie Whitaker" width="50%">
    <img src="/images/kirstie-edinburgh-windy.jpg" alt="Kirstie on a windy hill" width="50%">
</figure>

I’d really like to be able to put a single picture on one side and then wrap text around it on the other.

Does anyone have any suggestions on how to achieve that?

@KirstieJane
Copy link
Member Author

Some extra information after a conversation on Twitter. One of the difficulties I have is that I didn’t build the website - I forked it from the wonderful https://github.com/mmistakes/so-simple-theme - so I don’t know WHERE i should be looking to make these changes.

So there’s really 2 steps I think:

  1. How do I adjust the figure classes to have one that takes up just half of the page and then allows text on the other half (on desktop, on mobile it should be responsive and put the text below the picture)
  2. Which file should this adjustment be in?

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

No branches or pull requests

1 participant