How to align text and photo on the same line?

i’m trying to put text and photo on the same level but the photo always goes below the text. I want the photo to be on the right.
i tried to use #align() and #block() functions but it didn’t work.
I feel like there’s some function or easy way which I don’t know as this’s something that people may need to do a lot (as I think)

Hi @Ahmed_Hasan,

You will need to put it in a box as indicated in this example from the docs: Box Function – Typst Documentation

Some text #box(image(…)) and more text 

Reason being:

All elements except inline math, text, and boxes are block-level and cannot occur inside of a paragraph. The box function can be used to integrate such elements into a paragraph. Boxes take the size of their contents by default but can also be sized explicitly.

oh great :sweat_smile: thank you so much

1 Like

Hello. Please update your post and use backticks when referencing code in your post.

1 Like

I edited it :saluting_face:, thanks.