<dl>
<dt class="form-hdg">お名前</dt>
<dd class="form-input"><input class="input" type="text" name="contact[name]" placeholder="山田太郎"></dd>
</dl>
* {
margin: 0;
padding: 0;
}
dl {
padding: 10px;
}
.form-hdg {
margin-bottom: 10px;
font-size: 16px;
}
.form-input input {
width: 200px;
height: 40px;
padding: 10px;
border: 0;
background-color: #efefef;
}
::placeholder {
color: #acacac;
font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif";
font-size: 18px;
}
input {
font-size: 20px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.