Text in button - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Text in 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">
@charset "utf-8";
#div1<!--   w w w .  j  av a2s .  co  m-->
 {
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   min-height:441px;
   font-size:36px;
   font-family:molengo, sans-serif;
   font-weight:601;
   font-variant:normal;
   font-style:normal;
   color:Chartreuse;
}

.btn {
   background:yellow;
   color:blue;
   display:inline-block;
   border-radius:4px;
   box-shadow:inset 0 2px 0 pink;
   font-family:Arial, sans-serif;
   padding:0 4em;
   text-decoration:none;
   background:linear-gradient(OrangeRed,grey);
   text-shadow:2px 2px 2px BlueViolet;
   height:51px;
   -webkit-line-clamp:2;
   line-height:2;
   text-align:left;
}

.blue.btn {
   background:linear-gradient(Chartreuse,yellow);
   text-shadow:2px 2px 2px blue;
}

.btn:hover {
   box-shadow:inset 0 2px 2px pink,
   inset 0 2.6em 2em rgba(255,255,255,0.4);
}

.btn:active {
   box-shadow:inset 0 2px 2px OrangeRed,
   inset 0 2.6em 2em rgba(0,0,0,0.4);
}
</style> 
 </head> 
 <body> 
  <div id="div1" height:500px> 
   <p>Lorem ipsum dolor sit amet, consectetur</p> 
   <a href="#" class="blue btn">Lorem ipsum</a> 
  </div>  
 </body>
</html>

Related Tutorials