Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I move the image to the right side of the text? Help me please

So I have this code for my assignment but I can’t figure out how to make the image goes to the side of the text. It keeps going to the right corner. Can someone help me out please? I just started to learn CSS. Thank you in advance.

<div class="txt">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit
    </div>
    <button class="but1">Example</button>
    <button class="but2">Example</button><br>
    <img src="cy.png" alt="IMG">

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Make a table

<table>
<tr>
<td>
    <div class="txt">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit
    </div>
    <button class="but1">Example</button>
    <button class="but2">Example</button><br>
</td>
<td>
    <img src="cy.png" alt="IMG">
</td>
</table>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading