As I delve into the realm of HTML, I'm encountering some challenges that are leaving me scratching my head. My goal is to have three images aligned in a row horizontally, like this: | img 1 | img 2 | img 3 |. The outer div container I'm working with has sufficient space to accommodate all three images.
I've experimented with various methods such as inline-block, inline, and float, but none seem to produce the desired outcome.
This is what I currently have:
<div id="banner" style="overflow: hidden; display: inline-block;">
<div class="" style="max-width: 20%; max-height: 20%;">
<img src ="img1.jpg">
</div>
<div class="" style="max-width: 100%; max-height: 100%;">
<img src ="img2.jpg">
</div>
<div class="" style="max-width: 20%; max-height: 20%;">
<img src ="img3.jpg">
</div>
</div>