Here is a snippet of my HTML code:
<div class="persoonal">
<div class="left"></div>
<div class="rigth"></div>
</div>
This is the CSS code I have written:
.profile {
width: 100%;}
.left {
width: 50%;
float: left;
height: auto;
display: inline-block;}
.rigth {
float: right;
width: 48%;
height: 100px;
display: inline-block;}
I am new to working with HTML and CSS, and I am facing a challenge.
I want the width of the left div to be 50% when the height of the right div is 100px. If the height of the right div exceeds 100px, then I want the width of the left div to be 100%.
If anyone has any advice or suggestions on how to achieve this, I would greatly appreciate it. Thank you in advance!