<div class="cp_iptxt">
<label class="ef"><input type="text" placeholder="お名前"></label>
</div>
<div class="cp_iptxt">
<label class="ef"><input type="text" placeholder="E-Mail"></label>
</div>
.cp_iptxt {
position: relative;
width: 100%;
margin: 10px 0;
}
.cp_iptxt input[type='text'] {
font: 15px/1.6 sans-serif;
width: calc(100% - 20px);
padding: 0.3em;
color: #aaaaaa;
border: 1px solid #ffffff;
box-shadow: 1px 1px 2px 0 #707070 inset;
border-radius: 4px;
transition: 0.3s;
}
.cp_iptxt .ef input[type='text']:focus {
outline: none;
box-shadow: inset 1px 1px 2px 0 #c9c9c9;
}
CSS3などで新たに追加された要素・装飾方法など、日々コードを書いていないと忘れてしまったり、ささっとプロトタイプを作る時などちょっとしたことに時間をかけている暇はない。そんな時に「あ〜、あれストックしときゃよかったなぁ」って困った自分用のストックブログです。カスタマイズなどがしやすいよう、昨今のweb制作に取り入れられる一般的なコードを中心に掲載しています。
@CopypetJp More Info