I'm struggling to position two div elements next to each other, with a third one to be added later. I've experimented with floating, display, and positioning options, but nothing seems to work. I've even copied code from other websites, but it still doesn't align as intended.
HTML:
<div class="diensten">
<div id="dienst1">
<h2>Ontruimingsoefening</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut varius orci ac velit sodales, nec lacinia eros aliquam. Phasellus consectetur interdum ligula, quis faucibus libero faucibus eu. </p>
<img src="photos/photo1.jpg" alt="Photo 1">
</div>
<div id="dienst2">
<h2>Beheer brandmeldinstallatie</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut varius orci ac velit sodales, nec lacinia eros aliquam. Phasellus consectetur interdum ligula, quis faucibus libero faucibus eu.</p>
<img src="photos/photo2.jpg" alt="Photo 2">
</p>
</div>
</div>
CSS:
.diensten h2 {
padding-top: 40px;
}
.diensten p, h2 {
font-family: Arial, sans-serif;
padding: 20px;
}
.diensten {
position: relative;
display: inline-block;
height: 500px;
background-color: #FFFFFF;
margin: auto;
}
#dienst1 {
margin-left: 90px;
height: 500px;
width: 500px;
box-shadow: 0px 0px 30px 0px #000;
}
#dienst2 {
margin-left: 900px;
height: 500px;
width: 500px;
box-shadow: 0px 0px 30px 0px #000;
}
#dienst2 img{
height: 300px;
width: 450px;
}