How to center an image?

37 views
Skip to first unread message

subqua...@gmail.com

unread,
May 2, 2014, 9:27:56 AM5/2/14
to mnemosyne-...@googlegroups.com
I cropped an image in windows paint and saved it as a .png file and pasted it into the window for the back side of the card. When I select preview the image cannot be seen because it is out side of the field of view. I need to use the scroll bars to slide it into view. How do I center the image to the window's field of view?

Peter Bienstman

unread,
May 2, 2014, 9:50:45 AM5/2/14
to mnemosyne-...@googlegroups.com
Hi,

What you need in this case is not centering (as the image is already centered), but rather rescaling. Either resize the image in Windows Paint, or alternatively, modify the card html e.g. like this:

<img src="img.jpg" width="50%" height="50%"/>

Cheers,

Peter
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/7b812271-
> 7767-49dd-ab60-f70cb9a814ea%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Michael Collett

unread,
May 2, 2014, 10:07:36 AM5/2/14
to mnemosyne-...@googlegroups.com
Thanks Peter, I resized the image and that fixed it.

jack....@gmail.com

unread,
Sep 24, 2014, 12:24:14 PM9/24/14
to mnemosyne-...@googlegroups.com
Is there any way other than using inline CSS style attributes to do this? I add lots of images and apply other formatting to my cards and it takes a while.

Thanks,

Jack

Peter Bienstman

unread,
Sep 24, 2014, 12:35:47 PM9/24/14
to mnemosyne-...@googlegroups.com
Not without writing a plugin, I'm afraid...

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/b18e6c7e-
> 93c3-47ce-bf95-bc7be0250294%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages