[英]Two texts in the same line one aligned left the other centered
I have a silly problem. 我有一个愚蠢的问题。 I want two texts to stay in the same line, but one
text-align: left;
我希望两个文本保持同一行,但一个
text-align: left;
and the other one text-align: center;
另一个
text-align: center;
What's the correct way to do that? 正确的方法是什么?
.number{ text-transform:uppercase; letter-spacing:1px; text-align:left; display:inline; width: 50px; margin-top:-10px; float:left; font-size:18px; } .menutitle{ display:block; text-transform:uppercase; letter-spacing:1px; text-align:center; font-size:18px; margin-bottom:31px; }
<span class="number">00</span><span class="menutitle">TEXT</span>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.