Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I place images side-by-side in restructured text?

Tags:

Is there a way to put 2 different images on the same "line", so, side-by side?

I know there is the :align: option, but if I put two images, the first with :align: left and the second with :align: right it doesn't work, because the latter is put in another paragraph.

like image 690
matteo Avatar asked Mar 03 '14 14:03

matteo


People also ask

How do you add multiple images in HTML?

Approach: First, create the <div> tag as mentioned in the previous example and insert multiple images inside a common <div> tag so that all the images have a separate <div> tag and a class name.

How do I align an image horizontally in HTML?

We use <img> align attribute to align the image. It is an inline element. Attribute Values: left: It is used for the alignment of image to the left.


1 Answers

I used substitution definitions:

|pic1| any text |pic2|  .. |pic1| image:: img1.png    :width: 45%  .. |pic2| image:: img2.png    :width: 45% 
like image 89
fiona Avatar answered Oct 17 '22 09:10

fiona