1
お元気ですか?私はcss3-divに番号を集中させようとしています。私はこの使用しています:丸みを帯びた境界線を持つcss3 divに文字を配置する方法
border:2px solid #333333;
padding:1px;
-moz-border-radius:10px;
-webkit-border-radius:10px;
-o-border-radius:10px;
-khtml-border-radius:10px;
border-radius:10px;
background-color: #fff;
height: 25px;
width: 25px;
をし、それは私にこれを与える:
は、どのように私は一桁のcharachterでも、それを中央のですか?
多くの感謝!
text-align: center;
line-height: 25px; /* vertical height of the container/element */
あなたのCSSに:あなただけ追加できる要素もdisplay: block;
(またはdisplay: inline-block;
)であると仮定すると
Genius!ダビデありがとう! – daniel
あなたは絶対に歓迎です=) –