My challenge is to create a layout with two articles inside a section, each with equal width and bordered with a slight separation in between. The ultimate goal is to have these articles within a section, next to which there will be an aside.
I'm struggling to achieve the desired result of having the articles with equal width while also incorporating borders and a separation between them.
.section-split {
border: solid;
margin-top: 5px;
float: left;
overflow: hidden;
width: 84%;
background-color: white;
padding: 5px;
}
.section-article1 {
width: 50%;
float: left;
margin-right: 5px;
}
.section-article2 {
display: inline-block;
width: 50%;
margin-right: -330px;
}
.article-orange {
background-color: orange;
border: solid;
width: 100%;
padding: 10px;
}
.article-red {
background-color: red;
float: left;
width: 100%;
border: solid;
padding: 10px;
}
.aside-purple {
background-color: purple;
float: left;
width: 200px;
}
<section class="section-split">
<section class="section-article1">
<article class="article-orange">Article 1</article>
</section>
<section class="section-article2">
<article class="article-red">Article 2</article>
</section>
</section>
<aside class="aside-purple">Aside</aside>