JSFiddle - React, Tailwind, and code Playground
by Igaojsfiddle
HTML
<div class="header"></div>
<div class="login-area">
<div class="login-photo">
<img src="http://www.linklog.com.br/uploads/links/315771-1315613080.jpg" alt="">
</div>
</div>
CSS
body
{
margin:0;
border:0;
}
.header {
background-color:yellow;
height:180px;
width:100%;
background-repeat: repeat;
background-image: url('http://depotwallpaper.com/wp-content/uploads/2014/05/space-scene-earth-wallpaper-fantasy-picture-earth-wallpaper.jpg');
background-position: 1600px -100px;
position:absolute;
}
.login-area {
height:400px;
width:50%;
background-color:white;
border: 1px solid #B1A9A9;
position: absolute;
right: 0;
left: 0;
margin: auto;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
margin-top:150px;
}
.login-photo
{
background-color:blue;
height:100px;
width:100px;
position: absolute;
right: 0;
left: 0;
margin: auto;
margin-top:-50px;
background-color:white;
padding:8px;
border-radius: 50%;
border: 1px solid #B1A9A9;
}
.login-photo > img
{
border-radius: 50%;
}