FORUMUL ELECTRONISTILOR

Distribuiţi
Vezi subiectul anteriorIn josVezi subiectul urmator
mr.franta
avatar
mr.franta
Membru
MESAJE : 8
MEMBRU DIN : 05/09/2017
LOCATIE LOCATIE : Giurgiu
PROFESIE : web-design

#1 Buton pur css

la data de Mier Iul 25, 2018 10:58 pm
Demo https://www.frannnta-design.com/h17-button
Cod html
Cod:
<div class="button">Button</div>
Cod css
Cod:

  .button{
  padding:10px 20px;
  display: inline-block;
  min-width: 40px;
  margin: 10px;
  -webkit-box-shadow: 4px 4px 0px 0px rgba(221,221,221,1),
  -4px 4px 0px 0px rgba(221,221,221,1),
  4px -4px 0px 0px rgba(221,221,221,1),
  -4px -4px 0px 0px rgba(221,221,221,1),
  0px 1px 1px #fff inset;
  background: #f4f4f4;
  border-radius: 3px;
  -moz-box-shadow: 4px 4px 0px 0px rgba(221,221,221,1),
  -4px 4px 0px 0px rgba(221,221,221,1),
  4px -4px 0px 0px rgba(221,221,221,1),
  -4px -4px 0px 0px rgba(221,221,221,1),
  0px 1px 1px #fff inset;
  background: #f4f4f4;
  border-radius: 3px;
  box-shadow: 4px 4px 0px 0px rgba(221,221,221,1),
  -4px 4px 0px 0px rgba(221,221,221,1),
  4px -4px 0px 0px rgba(221,221,221,1),
  -4px -4px 0px 0px rgba(221,221,221,1),
  0px 1px 1px #fff inset;
  background: #f4f4f4;
  border-radius: 3px;
font-family: sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0px 1px 1px white;
cursor: pointer;
 color: #555;
 
  background: rgba(255,255,255,1);
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(47%, rgba(246,246,246,1)), color-stop(100%, rgba(237,237,237,1)));
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed', GradientType=0 );
  border: 1px solid rgba(0,0,0,0.18);
  }
 
  .button:hover{
  background: #fff;
  color: #ef3b00;
  }


Vezi subiectul anteriorSusVezi subiectul urmator
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum