我试图在同一行上获得两行文本,一个在左侧,另一行在右侧。
CSS:
.topbar {
background-image:url(images/bar_bg.png);
height:62px;
}
.topbar span{
font-family:Arial;
font-weight:bold;
font-size:15px;
color:#494963;
margin: 0;
padding-left:280px;
padding-top:15px;
}
.topbar span.left{
font-family:Arial;
font-size:15px;
color:#494963;
margin: 0;
padding-right:380px;
padding-top:15px;
}
HTML:
<div class="topbar">
<span class="left">Contact Us or Come see us at our Branch</span>
<span>11 HIGH STREET, TOWN CENTER, Bristol, BA140IO </span>
</div>