How to add three images spaced separately in one line | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to add three images spaced separately in one line

I'm trying to have three images; left, center, and right of a page, all on one line. Also want to caption each, would the same code apply to paragraphs as well?

9th Jan 2017, 5:39 PM
Jesse Gish
Jesse Gish - avatar
1 Answer
+ 2
Try something like this: <div style="display:inline-block;width:30%;"> <img alt="TEST" /> </div> <div style="display:inline-block;width:30%;"> <img alt="TEST" /> </div> <div style="display:inline-block;width:30%;"> <img alt="TEST" /> </div> That should be fine for <p> too
9th Jan 2017, 6:02 PM
Andreas K
Andreas K - avatar