I need assistance in figuring out why my articles are not displaying in one line, even though they are set to be inline-block elements (each article includes an image, h3 text, and a paragraph). Below is the CSS code I am using:
#article_1{
width: 1000px;
margin: auto;
}
article {
max-width: 33%;
display: inline-block;
}
article img {
max-width: 100%;
}
Below is my HTML code:
<body>
<header><h1>News page</h1></header>
<section id="article_1">
<article>
<h3>Kamal has chosen the sexiest man alive!!!</h3>
<div id="article_img" style="background:url(./photos/sex - Copy.jpg)"></div>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. texttook a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</article>
</section>
<br>