<article id="l1">
<img class="active_pic" id="a1" src="img/load.gif"/>
</article>
<article id="l2">
<img class="active_pic" id="a2" src="img/load.gif"/>
</article>
<article id="l3">
<img class="active_pic" id="a3" src="img/load.gif"/>
</article>
Here, I have the HTML code for placing multiple <article>
elements side by side, but there seems to be an issue with the display layout:
article{
height:90%;
margin:0;
padding:0;
border:0;
text-align:left;
display:inline-block;
}
Despite my efforts, the <article>
elements are not touching each other as I desire. Changing the display property to inline works, but I want inline-block. However, this causes the elements to take up 100% width instead of adjusting to the image width.
I admit this may be a basic issue, but I have exhausted my knowledge on this matter.
For reference, I have a link to a similar layout that I'm aiming for:
On this page, selecting the left drawing ('colorful') will highlight the problem I am facing.