I'm struggling to properly align two divs within my footer.
Within the footer, I have two paragraphs that need to be placed on the same line - one hugging the left border and the other hugging the right border of the footer div.
Despite trying various methods such as floating and setting widths, the divs are not behaving as expected and the paragraphs are stacking on top of each other.
Can anyone provide guidance on how to successfully position these two paragraphs on the same line while aligning them with opposite borders?
HTML:
<div id='container'>
<div id='footer'>
<div id="errors">
<p>paragraph 1</p>
</div>
<div id="other">
<p>paragraph 2</p>
</div>
</div>
</div>
CSS:
#container
{
width:90%;
margin:auto;
background-color:#F6F4F1;
border: 5px solid #00b4b4;
padding:0;
border-radius: 25px;
}
#footer
{
width:100%;
bottom:0;
color:#838B8B;
font-family:verdana;
}
#errors
{
margin-left:4.5%;
text-align:left;
color:red;
}
#other
{
text-align:right;
margin-right:3%;
display:inline-block;
}
JS FIDDLE demonstrates the unexpected behavior of my code.