I am trying to display 6 svg images side by side in a row, but I am encountering some layout issues.
The images have varying widths, but the same height. I have used the height property to scale them proportionally. However, the image container is taking up the full width of the layout grid, causing the images to stack vertically instead of appearing in a row.
Below is the code I am using:
<div class="gridContainer clearfix">
<div class="sponsorLogo">
<img src=_assets/images/logo_1.svg/>
<img src=_assets/images/logo_2.svg/>
<img src=_assets/images/logo_3.svg/>
<img src=_assets/images/logo_4.svg/>
<img src=_assets/images/logo_5.svg/>
<img src=_assets/images/logo_6.svg/>
</div>
</div>
.sponsorLogo img {
text-align: center;
height: 3em;
}
When I use the width property to align them in a row, the images end up with different heights.
Any suggestions on how to resolve this issue would be greatly appreciated. Thank you!