html
1<style> 2 .text::before { 3 content: ''; 4 display: inline-block; 5 width: 6px; 6 height: 20px; 7 margin-right: 3px; 8 background-color: #0098FE; 9 } 10</style> 11 12<div class="text">hello world</div> 13<div class="text">あいうえお</div>
やりたいことは、上の画像の文字(hello world とか あいうえお)を上下中央に配置(青い棒の真ん中)したいのですが、どうしたらできますか?
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。