War*_*ald 1 css twitter-bootstrap-3
我正在尝试垂直和水平居中下面代码中图像左侧的列表组.
<div class="jumbotron">
<div class="row">
<div class="col-lg-6">
<ul class="list-group center-list">
<li class="list-group-item">something here</li>
<li class="list-group-item">something here</li>
<li class="list-group-item">something here</li>
</ul>
</div>
<div class="col-lg-6">
<img src="images/ModelBack.png" class="pull-right">
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我创建了中心列表类,并尝试使用类似问题的一些示例,但我的CSS显然缺乏.
这对我有用:
<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col-md-6">
<h1>Big Test</h1>
<h2>Little Test</h2>
</div>
<div class="col-md-6">
<img src="img.jpg" />
</div>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)