Check out my current website layout on codepen.
I'm looking for a more responsive way to code this with CSS, so that the text doesn't get pushed over when the window is resized. Also, I want to improve the efficiency of coding the CSS for this layout without relying on padding. Any suggestions on how to create a better and more responsive layout using media queries would be appreciated.
If you have any advice or help to offer, I would greatly appreciate it. Thank you in advance for your efforts. :)
HTML:
<div class="site-header">
<ul class="main-navigation"><li><a href="#">Overview</a>
</li>
<li><a href="#">Blog</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="content">
<p>
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
</p>
CSS:
.site-header {
display: inline-block;
top: 0;
left: 0;
right: 0;
width: 14%;
height: 100%;
float: left;
text-align: right;
position: fixed;
z-index: 1;
// border: 1px solid green;
box-sizing: border-box;
-webkit-box-sizing:border-box;
}
.main-navigation {
position: absolute;
bottom: 40px;
left: 0;
right: 0;
cursor: default;
// border: 1px solid red;
list-style-type: none;
}
.content {
position: relative;
float: right;
// border: 1px solid yellow;
word-wrap: break-word;
white-space: normal;
box-sizing: border-box;
-webkit-box-sizing:border-box;
width: 86%;
overflow: hidden;
padding-right: 10%;
padding-left: 10%;
}