html/css/javascript まとめ

CSSだけでできるシンプルなボタン2種類
適当に色変えて利用すべし。

.simpleBtn1 {
  display: inline-block;
  padding: 8px 10px;
  border: solid 1px #06F;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  background: -webkit-gradient(linear, left top, left bottom, from(#69F), to(#36F));
  -webkit-box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.2) inset, 0px 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.2) inset, 0px 1px 1px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
}

.simpleBtn2 {
  display: inline-block;
  padding: 4px 10px;
  margin-right:3px;
  background: -moz-linear-gradient(top,#f0f0f0 0%,#b8b8b8);
  background: -webkit-gradient(linear, left top, left bottom, from(#ffffff),to(#b8b8b8));
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  border: 1px solid #cccccc;
  font-size: 1em;
  color: #333333;
}