在「我的技能」部分,我想對準右邊的技能職稱,旁邊的進度條,就像在Original Theme後。的text-align不工作我有一列
但只要我有一列,文本對齊停止工作。
這裏的Codepen:http://codepen.io/zaky/pen/KdXGEj/
HTML
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc= sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
</head>
<body>
<!-- Heading -->
<h2>Skills</h2>
<p>Lorem Ipsum</p>
</div>
<div class="row">
<div class="col-sm-4">
<h2>One <strong>Skills</strong></h2>
<p class="mrgBtm20">
Lorem Ipsum
</p>
<div class="row">
<div class="col-md-2 skilltitle">Axure</div>
<div class="col-md-8">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100" style="width: 80%;">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2 skilltitle">Photoshop</div>
<div class="col-md-8">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100" style="width: 80%;">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2 skilltitle">Analytics</div>
<div class="col-md-8">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<h2>Two <strong>Skills</strong></h2>
<p class="mrgBtm20">
Lorem Ipsum
</p>
<div class="row">
<div class="col-md-2 skilltitle">HTML5</div>
<div class="col-md-8">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100" style="width: 90%;">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2 skilltitle">CSS3</div>
<div class="col-md-8">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100" style="width: 90%;">
<span class="sr-only">80% Complete</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2 skilltitle">jQuery</div>
<div class="col-md-8">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 75%;">
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<h2>Three <strong>Skills</strong></h2>
<p class="mrgBtm20">
Lorem Ipsum
</p>
<div class="row">
<div class="col-md-2 skilltitle">Intelligence</div>
<div class="col-md-8">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100" style="width: 90%;">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2 skilltitle">Pitching</div>
<div class="col-md-8">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%;">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2 skilltitle">Monetizing</div>
<div class="col-md-8">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 75%;">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
CSS
/*Skills*/
.skilltitle {
text-align: right;
font-family : 'Roboto', sans-serif;
font-weight : 700;
}
.progress {
border-radius: 0px;
height: 15px;
margin-top: 5px;
background-color: #D6D6D6;
margin-left : 20px;
}
.progress .progress-bar {
background-color: #30486A;
}
/*Skills*/
我刪除它,但它仍然堅持到左邊...... – Zaky