Can anyone help me figure out how to display two <article>
s on the same line or side-by-side, with the FirstArticle positioned to the left and the SecondArticle to the right?
.MainContent {
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
overflow: hidden;
line-height: 30px;
}
.Content {
float: left;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
width: 48%;
}
.FirstArticle {
margin-left: 10px;
margin-top: 30px;
}
.SecondArticle {
margin-left: 10px;
margin-top: 30px;
}
<div class="MainContent">
<div class="Content">
<article class="FirstArticle">
<header class="Header">
<h2>First Article</h2>
</header>
<footer class="Footer">
<p class="post-info">some text for the footer..
</p>
</footer>
<content>
<p><q>All good people agree,
And all good people say,
All nice people, like Us, are We
And every one else is They:
But if you cross over the sea,
Instead of over the way,
You may end by (think of it!)
looking on We
As only a sort of They!</p></q>
</content>
</article>
<article class="SecondArticle">
<header class="2Header">
<h2>Second Article</h2>
</header>
<footer class="Footer">
<p class="post-info">some text for the footer..
</p>
</footer>
<content>
<p><q>All good people agree,
And all good people say,
All nice people, like Us, are We
And every one else is They:
But if you cross over the sea,
Instead of over the way,
You may end by (think of it!) looking
on We
As only a sort of They!</p></q>
</content>
</article>
</div>
</div>