Text wrap round image

5 views
Skip to first unread message

samuel...@gmail.com

unread,
Jun 24, 2024, 5:57:00 AM (5 days ago) Jun 24
to Numbas Users
Hi.

The statement code is:
<div><img src="image.jpg" width="127" height="127" style="padding: 5px 5px 5px 5px;" align="left" /> A group of people at a music festival are asked whether they play an instrument. The data collected is presented in the Venn diagram.</div>

The text wraps in the editor, but when I run the question the text is aligned with the bottom of the image rather than the top, as shown.Capture.PNG
I'm not sure of the source of this issue.

Thoughts appreciated.
Sam

Christian Lawson-Perfect

unread,
Jun 26, 2024, 9:29:12 AM (3 days ago) Jun 26
to numbas...@googlegroups.com
Ah, sorry, I think this is because the display code wraps images in a container element to apply the lightbox toggle button. This means that the align="left" attribute on the image doesn't apply in the same way.
I'll have to have a think about how to deal with this.

--
You received this message because you are subscribed to the Google Groups "Numbas Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numbas-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/numbas-users/56d881a9-fd51-4085-badb-c635073988afn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages