我試圖讓我的文字對齊,以便文字不環繞此圖標。我有麻煩,因爲我的圖標和我的文本在h3標籤和錨點內,我正在使用跨度。我通常做這項工作的典型方法是行不通的,因爲我使用跨度,並且因爲圖標和文本都在h3和錨點內。環繞h3標籤內部跨度的圖標文字
我所尋找的是
icon Test test test test test test
Test test test test test test
我所得到的是
icon Test test test test test test
Test test Test test test test test
.ui-accordion .ui-accordion-header {
display: block;
cursor: pointer;
position: relative;
margin: 2px 0 0 0;
padding: .5em .5em .5em .7em;
min-height: 0;
font-size: 100%;
}
.fa-plus::before {
content: "\f067";
}
.textalignleft {
overflow: hidden;
text-align: right;
}
<h3 class="fc-panel-title ui-accordion-header ui-state-default ui-corner-all" role="tab" id="ui-id-17" aria-controls="ui-id-18" aria-selected="false" aria-expanded="false" tabindex="0">
<a href="javascript:void(0)">
<span class="fa fa-plus fc-iconspace"></span>
<span class="textalignleft">Does American AgCredit offer special programs for young, beginning, or small farmers/ranchers?American AgCredit offer special programs for young, beginning, or small farmers/ranchers?American AgCredit offer special programs for young, beginning, or small farmers/ranchers?American AgCredit offer special programs for young, beginning, or small farmers/ranchers?</span></a></h3>
對不起,我沒有換第二跨度錨。整個事情都由h3和主播包裝。 –
謝謝你的幫助! –