Reputation: 58761
In GitHub's markdown, I have a table with one row and two columns, each containing an <img/>
. Without any width
specification, the right of the two images is far larger than the left.
I would like to make sure the two images have the same width, but I don't want to specify the absolute size to avoid display issues on small screens. I'd love
<img src="img1.png" width="45%"/> | <img src="img2.png" width="45%"/>
:----:|:----:|
but apparently the 45%
is now relative to the width of the column, not the page.
Any hints?
Upvotes: 2
Views: 1679
Reputation: 58761
Markdown extends HTML, so one can simply use HTML tables:
<table width="100%">
<tr>
<td width="50%"></td>
<td width="50%"></td>
</tr>
</table>
Upvotes: 3