I am struggling with positioning a promo image next to a dropdown menu, which consists of several DIVs. Currently, the image is displaying below the menu due to using inline-block and block properties in the CSS styles.
.menu{
background-color: white;
color: #707070;
height: 50px;
width: 200px;
cursor: pointer;
border: 1px solid;
text-align: middle;
margin-left: 13px;
margin-top: 30px;
display: block;
}
.collapsible {
background-color: white;
display: block;
color: #707070;
height: 50px;
width: 200px;
cursor: pointer;
border: 1px solid;
text-align: middle;
margin-left: 13px;
}
.content {
display: none;
text-align: center;
overflow: hidden;
background-color: white;
color: #707070;
height: 50px;
width: 200px;
cursor: pointer;
margin-left: 13px;
}
.advert{
height: 240px;
width: 800px;
margin-left: 500px;
display: block;
margin-left: auto;
margin-right: auto;
float: top;
}
<div>
<button class="menu">MENU</button>
<button class="collapsible">Categories ⯆</button>
<div class="content">
<p>1</p>
</div>
<button class="collapsible">Information ⯆</button>
<div class="content">
<p>2</p>
</div>
<button class="collapsible">Contact Us ⯆</button>
<div class="content">
<p>3</p>
</div>
<button class="collapsible">Follow Us ⯆</button>
<div class="content">
<p>4</p>
</div>
</div>
<div>
<img src="img/promo_image.png" class="advert">
</div>
Further elaboration provided to prevent any misunderstanding.