Media query for html button - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button style

Description

Media query for html 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">

.ctext-wrap {<!--   www. j av  a2s .  co m-->
   max-width: 100%;
}
.ctext-wrap {
   max-width: 50%;
   margin: 0px auto;
   text-align: left;
}
.btn-next {
   float: right;
   min-width: 130px;
}
.offert-btn {
   display: block;
   background: #213156 !important;
   color: #fff !important;
   font-weight: bold !important;
   text-decoration: none !important;
   margin-bottom: 20px !important;
   border-radius: 0 !important;
}
@media screen and (max-width: 768px) {
   .ctext-wrap .btn {
      display: block;
      width: auto;
      float: none;
   }


      </style> 
 </head> 
 <body> 
  <div class="ctext-wrap"> 
   <button type="button" class="btn offert-btn btn-next"> Mer information <br> </button> 
   <button type="button" class="btn btn-previous offert-btn"> F?reg?ende <br> </button> 
  </div>  
 </body>
</html>

Related Tutorials