Search now
Testing component
by Kirubel Girma
HTML
<div class="mnpg">
<input type="text" class="inpt">
<button class="nbtn">Click now</button>
</div>
CSS
body {
margin: 0em;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.mnpg {
border-radius: 0.3em;
display: table;
background: cornflowerblue;
width: 16.4em;
padding: .4em;
margin:2em;
}
.nbtn {
height: 2.4em;
margin-left: .4em;
vertical-align: middle;
display: table-cell;
outline: none;
border: none;
box-shadow: 0.1em 0.1em 1em #00000030;
-webkit-box-shadow: 0.1em 0.1em 1em #00000030;
-moz-box-shadow: 0.1em 0.1em 1em #00000030;
box-shadow: 0.1em 0.1em 1em #00000030;
padding: .5em .7em;
font-size: .8em;
}
.nbtn:active {
transform: scale(.95);
-webkit-transition: .1s ease;
-moz-transition: .1s ease;
-ms-transition: .1s ease;
-o-transition: .1s ease;
transition: .1s ease;
}
.inpt {
display: table-cell;
vertical-align: middle;
outline: none;
border: none;
font-size: 1em;
padding: .4em;
}