I have to align horizontally this 2 div
s, I need to use the %
to set the width but even with padding
and margin
to 0 I can't explain why they won't align correctly (the second one is under the first div)
This is the code i'm 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>
Can you please help me? Thank you a lot :D