我試圖以我的文本爲中心「示例」。我的span標籤中有文本對齊中心,但它不是居中。我只想要「示例」中心而不是其他文本。如何在我的風格中居中文本?
看看我的jsfiddle:http://jsfiddle.net/huskydawgs/dx5fe6x5/
HTML
<p class="textbox">
<span style="text-align:center; color:#2251a4; font-weight:bold;letter-spacing: 10px;">EXAMPLE</span><br><br> The powers of the Company shall be exercised by or under the authority of, and the business and affairs of the Company shall be managed under the direction of, one or more managers. The Manager(s) shall be: Jane Doe, John Doe and Yogi Berra.</p>
CSS
.textbox {
padding: 8px 12px;
color: #555555;
background-color: #F1F1F1;
border: #e2e3e4 2px solid;
}