Currently facing some layout issues while trying to organize a page using sections. Here's the code snippet I'm working with...
https://jsfiddle.net/ytv4zp4b/
<section>
<div class="width">
Test Content
<div class="sharing">
<div class="sharingsocial">
Social Links
</div>
<div class="sharingprint">
Print Link
</div>
</div>
</div>
</section>
<section>
Footer
</section>
section{background-color:grey;}
.width{background-color:red;max-width:500px;margin:auto;}
.sharing{max-width:500px;margin:auto;}
.sharingsocial{float:left;background:green;}
.sharingprint{float:right;background:yellow;}
The problem I'm encountering is that the footer section seems to be overlapping the .sharing div. Can someone help me figure out where I'm making a mistake?