CSS Code
#info-section{
width: 700px;
margin-top: 30px;
}
#info-section ul li{
display: inline-block;
list-style: none;
}
/*#image-section img{
width: 400px;
height: 270px;
}*/
.info-img img{
max-width: 400px;
max-height: 270px;
}
.text-section{
width: 200px;
height:270px;
background-color: #1b1b1b;
margin-left: 400px;
color: #fff;
position: absolute;
}
/* #text-section{
width: 200px;
height:270px;
background-color: #1b1b1b;
position: relative;
} */
HTML CODE
<div id="info-section">
<!-- <div id="image-section">
<img src="images/bigpeg.png">
</div>
<div id="text-section">
<p>
Hello
</p>
</div>-->
<ul>
<li class="info-img">
<img src="images/bigpeg.png" alt="The Big Peg - Jewellery Quarter">
</li>
<li class="text-section">
Hello
</li>
</ul>
</div>
I don't know whats wrong this code, all the other parts work perfectly fine.
Thanks in advance.