The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Hi!
Can someone guide me on how can I vertically align an image and a long text using <div> like the image below? TIA.
Solved! Go to Solution.
Nancy Keefer was kind enough to teach me this:
<h4>This is the Headline</h4> <p><strong>This is a bold second headline:</strong></p> <div style="float: left; width: 25%;"> <p>First line in the left column</p> <p>Second line in the left column</p> <p>Etc.</p> </div> <div style="float: right; width: 75%;"> <p>First line in the right column</p> <p>Second line in the right column</p> <p>Etc.</p> </div>
Since you want to alternate the side on which a comparatively small image can be found you might want to play with the percents on the widths. Just use that entire code for one image, and repeat it entirely for the next image.
Nancy Keefer was kind enough to teach me this:
<h4>This is the Headline</h4> <p><strong>This is a bold second headline:</strong></p> <div style="float: left; width: 25%;"> <p>First line in the left column</p> <p>Second line in the left column</p> <p>Etc.</p> </div> <div style="float: right; width: 75%;"> <p>First line in the right column</p> <p>Second line in the right column</p> <p>Etc.</p> </div>
Since you want to alternate the side on which a comparatively small image can be found you might want to play with the percents on the widths. Just use that entire code for one image, and repeat it entirely for the next image.
Thank you very much Steven_S! This is a big help!
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.