<div class="sidebar">
    <div class="show_hide">
        <span class="bar"></span>
        <span class="bar"></span>
        <span class="bar"></span>
    </div>
    <aside>
        <ul class="menu">
            <li><a href="#">Ссылка</a></li>
            <li><a href="#">Ссылка</a></li>
            <li><a href="#">Ссылка</a></li>
            <li><a href="#">Ссылка</a></li>

        </ul>
    </aside>
</div>
<div class="container-inner">
    <h1>Заголовок контенера</h1>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It
        hassurvived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
        publishingsoftware like Aldus PageMaker including versions of Lorem Ipsum.</p>

    <h1>Заголовок контенера</h1>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It
        hassurvived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
        publishingsoftware like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: background-color 0.5s ease-in-out;
    -moz-transition: background-color 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
}

body {
    font-size: 11pt;
    font-family: Verdana, Tahoma, sans-serif;
    color: #8F8F8F;
    background-color: #212121;
}

h1 {
    margin-bottom: 10px;
}

p {
    margin-bottom: 20px;
}

.sidebar,
.container-inner {
    float: left;
    display: inline-block;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 30%;
    background-color: #303030;
    z-index: 99;
}

.sidebar .show_hide {
    position: absolute;
    right: -30px;
    top: 0;
    background-color: #545454;
    height: 30px;
    width: 30px;
    padding: 5px;
    cursor: pointer;
}

.sidebar .show_hide:hover {
    background-color: #5D5C5C;
}

.sidebar .show_hide .bar {
    display: block;
    width: 95%;
    border-bottom: 4px solid #969191;
    margin-bottom: 4px;
}

.container-inner {
    position: relative;
    left: 30%;
    width: 70%;
    top: 0;
    padding: 35px 15px 15px 15px;
}

.sidebar ul.menu {
    list-style: none;
}

.sidebar ul.menu,
.sidebar ul.menu > li,
.sidebar ul.menu > li > a {
    width: 100%;
    float: left;
    display: block;
}

.sidebar ul.menu > li > a {
    padding: 15px 0;
    text-align: center;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 11pt;
}

.sidebar ul.menu > li > a:hover,
.sidebar ul.menu > li > a:focus,
.sidebar ul.menu > li > a:active {
    background-color: rgb(78, 78, 78);
}
$(document).ready(function() {
    updateSidebarHeight()
});

$(function() {
    $(window).resize(function() {
        updateSidebarHeight();
    });

    $('.show_hide').click(function() {
        showHideSidebar();
    });
});

function updateSidebarHeight() {
    $('.sidebar').css('height', $(window).height());
}

function showHideSidebar() {
    if (!$('.sidebar').hasClass('hidden')) {
        $('.sidebar').addClass('hidden');
        $('.sidebar').css({
            'margin-left': -$('.sidebar').width()
        });
        $('.container-inner').css({
            'width': '100%',
            'left': 0
        });
    } else {
        $('.sidebar')
            .removeClass('hidden')
            .removeAttr('style');
        $('.container-inner').removeAttr('style');
        updateSidebarHeight();
    }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js