<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-bottom: 10px;
}
.cp_iptxt input[type='text'] {
font: 15px/1.6 sans-serif;
width: 100%;
color: #aaaaaa;
border: 5px solid #1b2538;
border-radius: 4px;
transition: 0.3s;
}
.ef input[type='text']:focus {
border: 5px solid #da3c41;
outline: none;
}
CSS3などで新たに追加された要素・装飾方法など、日々コードを書いていないと忘れてしまったり、ささっとプロトタイプを作る時などちょっとしたことに時間をかけている暇はない。そんな時に「あ〜、あれストックしときゃよかったなぁ」って困った自分用のストックブログです。カスタマイズなどがしやすいよう、昨今のweb制作に取り入れられる一般的なコードを中心に掲載しています。
@CopypetJp More Info