Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div class="wrapper">
            <div class="container">
                <header class="header">
                    <div class="header__left">
                        <div class="user__ava">
                        </div>
                        <div class="user__name">
                            Jhon Jhonson
                        </div>
                    </div>
                    <div class="header__right">
                        <div class="user__menu">
                            Contacts
                        </div>
                    </div>
                </header>
            </div>
 </div>
</body>
</html>
 
body, html {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}
body {
    background: #C0C0C0;
}
.wrapper {
    position: relative;
    min-height: 100%;
    height: auto;
    overflow: hidden;
}
.container {
    width: 960px;
    margin: 0 auto;
}
.header {
  height: 80px;
  background: #696969;
  overflow: hidden;
}
/*-----------------------------------*/
/*блоки, в которых возникла проблема*/
.header__right {
    text-align: right;
    display: inline-block;
    width: 50%;
}
.header__left {
    width: 50%;
    display: inline-block;
    text-align: left;
    height: 100%;
}
.header__left:after {
    content:'';
    display:inline-block;
    width:0;
    height:100%;
    vertical-align:middle;
}
.user__ava {
    display: inline-block;
    width: 70px;
    height: 70px;
    box-sizing:border-box;
    border: 1px solid blue;
    border-radius: 100%;
    background: red;
    float: left;
    vertical-align: middle;
}
Output 300px

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers