2
私はブートストラップを使用しています。同じ列にイメージとテーブルを並べて並べたいと思います。HTML5 - イメージと表のインラインを水平に整列する
HTMLコード:
<div class="col-md-10" style="width: 100%">
<img src="#" class="img-responsive pull-left pro-page-pro-image">
<div class="container">
<table class="table table-responsive pull-right pro-page-contact-details-table">
<tbody>
<!---the table has 12 rows in total -->
<tr>
<td>MEMBER SINCE</td>
<td>2007</td>
</tr>
<tr>
<td>Suburb</td>
<td>Fourways, Randburg</td>
</tr>
</tbody>
</table>
</div>
</div>
関連するCSS:
.pro-page-pro-image {
display:inline;
margin-top: 4%;
margin-left: 11%;
margin-right: 11%;
margin-bottom: 4%;
}
.pro-page-contact-details-table {
display: inline;
}
クラス.table
と.table-responsive
は、標準のブートストラップ・クラスです。ブラウザの現時点では、テーブルは画像の真下に配置されています(左揃え)。何度も試してみても、並べて並べることはできません。
いずれのポインタも大歓迎です。
H. Brendanありがとうございましたあなたの提案は私の問題を解決しました。感謝。 –
あなたの歓迎:D –