I'm struggling to horizontally align these two div
s using percentages for width. Even with padding and margin set to 0, they refuse to line up properly (the second one ends up below the first).
This is the code I have been using:
<div style="width: 100%; height: 75%; background-color: red; position: absolute; top: 0;">
<div style="width: 60%; height: 100%; background-image: url(https://via.placeholder.com/350x150); overflow: hidden; padding: 0; margin: 0; "></div>
<div style="width: 40%; height: 100%; background-color: #202020; float: right; display: inline-block; overflow: hidden; padding: 0; margin: 0;"></div>
</div>
If anyone can offer guidance on how to resolve this issue, it would be greatly appreciated. Thank you!