[英]Css for displaying two elements side by side
我正在嘗試使圖標與Bootstrap中的段落並排顯示。 如您在小提琴中看到的那樣,該圖標出現在段落上方。
這是我的標記:
<div class="row-fluid">
<div class="span1"><p class="icon"><i class="glyphicon glyphicon-hand-right"></i></p></div>
<div class="span11"><p class="text"><strong>Teacher Management:</strong> Here you can manage the details belongs to the teacher, by clicking the link "Teacher Management" you can view the table displaying all the teachers minimum information. The "Create New" link just above the table allow you to fill up new teacher information and the links available in the table like view, edit and delete allow you to view detailed information, to update/edit the information, to delete the information respectively.</p></div>
</div>
我想將該段落放在手形圖標的右側; 我該怎么做?
您可以使用Bootstrap的col-xx-xx類(因為正在使用它)來執行此操作。
<div class="span1 col-xs-1">
<div class="span11 col-xs-11">
Bootstrap使用12列系統,因此使用1和11將使您的圖標變成1列,而文本內容將並排排列,剩下的11列。
您也可以使用引導帶類
<div class="row-fluid col-xs-12">
<div class="span1 col-xs-1"><p class="icon"><i class="glyphicon glyphicon-hand-right"></i></p></div>
<div class="span11"><p class="text"><strong>Teacher Management:</strong> Here you can manage the details belongs to the teacher, by clicking the link "Teacher Management" you can view the table displaying all the teachers minimum information. The "Create New" link just above the table allow you to fill up new teacher information and the links available in the table like view, edit and delete allow you to view detailed information, to update/edit the information, to delete the information respectively.</p></div>
</div>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.