Set Width of login button - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Set Width of login button

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
html, body {
   margin:0;
   padding:0;
   background:Chartreuse;
}

.login {<!--  w  w  w. j  a  v a2 s. c  o m-->
   display:block;
   position:relative;
   top:16px;
   width:301px;
   min-height:41px;
   border-bottom:6px solid yellow;
   box-sizing:border-box;
   -webkit-box-sizing:border-box;
   -moz-box-sizing:border-box;
   background:tan;
   padding:16px 6px;
   margin:0 auto;
   text-align:center;
   font-size:21px;
   color:blue;
}

@media only screen and (max-width: 680px)  {
   .login {
      width:100%;
   }

}
</style> 
 </head> 
 <body> 
  <span class="login">Lorem ipsum dolor </span>  
 </body>
</html>

Related Tutorials