0
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
<h4 class="modal-title" id="myModalLabel">Meer over <?php echo $user['roepnaam']; ?></h4>
</div>
<div class="modal-body">
<img src="images/userimg.png" name="aboutme" width="140" height="140" border="0" class="img-circle"></a>
<h3 class="media-heading"><?php echo $user['roepnaam']; ?> <?php echo $user['naam']; ?><small> <?php echo $user['stad']; ?></small></h3>
<p class="text-left"><strong>Gegevens:</strong><br>
<div class="panel-body">
<div class="row">
<div align="center" class=" col-md-8 col-lg-8 ">
<table class="table table-user-information">
<tbody>
<tr>
<td class="text-left">Roepnaam:</td>
<td class="text-left"><?php echo $user['roepnaam']; ?></td>
</tr>
<tr>
<td class="text-left">Naam:</td>
<td class="text-left"><?php echo $user['naam']; ?></td>
</tr>
<tr>
<td class="text-left">Gebruikersnaam:</td>
<td class="text-left"><?php echo $user['username']; ?></td>
</tr>
<tr>
<td class="text-left">Woonplaats:</td>
<td class="text-left"><?php echo $user['stad']; ?></td>
</tr>
<tr>
<td class="text-left">Adres:</td>
<td class="text-left"><?php echo $user['adres1']; ?><br><br><?php echo $user['adres2']; ?></td>
</tr>
<tr>
<td class="text-left">Provincie:</td>
<td class="text-left"><?php echo $user['provincie']; ?></td>
</tr>
<tr>
<td class="text-left">Email:</td>
<td class="text-left"><?php echo $user['email']; ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</p>
</div>
<div class="modal-footer">
<center>
<button type="button" class="btn btn-default" data-dismiss="modal">Sluit</button>
</center>
</div>
</div>
</div>
</div>
</div>
我如何中心我的表?我嘗試了所有的東西margin: 0 auto;
,並給表或id一個類。試過<center>
標籤,但我應該不使用。也試過align: center
;沒有這些工作,但我真的需要集中它。
我不確定我是否理解這個問題。在片段中,表格已經居中?!?而且即使沒有使用