Using bootstrap
I have the following code DEMO :
<div class="container">
<div class="page-header">
<h1>Seja bem vindo <small>Selecione um curso:</small></h1>
</div>
<div class="well col-sm-4">
<h4 class="text-center"><strong>Aminésia de velhos e novos durante a vida toda Aminésia de velhos e novos durante a vida toda</strong> </h4>
<h5 class="text-center"><strong>Turma:</strong> Turma 4</h5>
<h5 class="text-center"><strong>Inicio:</strong> 01/01/2014</h5>
<h5 class="text-center"><strong>Final:</strong> 01/12/2014</h5>
<a href="#" class="btn btn-success center-block">Acessar</a>
</div>
<div class="well col-sm-4">
<h3 class="text-center"><strong>Curso:</strong> Aminésia</h3>
<h4 class="text-center"><strong>Turma:</strong> Turma 4</h4>
<h5 class="text-center"><strong>Inicio:</strong> 01/01/2014</h5>
<h5 class="text-center"><strong>Final:</strong> 01/12/2014</h5>
<a href="#" class="btn btn-success center-block">Acessar</a>
</div>
<div class="well col-sm-4">
<h3 class="text-center"><strong>Curso:</strong> Aminésia</h3>
<h4 class="text-center"><strong>Turma:</strong> Turma 4</h4>
<h5 class="text-center"><strong>Inicio:</strong> 01/01/2014</h5>
<h5 class="text-center"><strong>Final:</strong> 01/12/2014</h5>
<a href="#" class="btn btn-success center-block">Acessar</a>
</div>
<div class="well col-sm-4">
<h3 class="text-center"><strong>Curso:</strong> Aminésia</h3>
<h4 class="text-center"><strong>Turma:</strong> Turma 4</h4>
<h5 class="text-center"><strong>Inicio:</strong> 01/01/2014</h5>
<h5 class="text-center"><strong>Final:</strong> 01/12/2014</h5>
<a href="#" class="btn btn-success center-block">Acessar</a>
</div>
<div class="well col-sm-4">
<h3 class="text-center"><strong>Curso:</strong> Aminésia</h3>
<h4 class="text-center"><strong>Turma:</strong> Turma 4</h4>
<h5 class="text-center"><strong>Inicio:</strong> 01/01/2014</h5>
<h5 class="text-center"><strong>Final:</strong> 01/12/2014</h5>
<a href="#" class="btn btn-success center-block">Acessar</a>
</div>
<div class="well col-sm-4">
<h3 class="text-center"><strong>Curso:</strong> Aminésia</h3>
<h4 class="text-center"><strong>Turma:</strong> Turma 4</h4>
<h5 class="text-center"><strong>Inicio:</strong> 01/01/2014</h5>
<h5 class="text-center"><strong>Final:</strong> 01/12/2014</h5>
<a href="#" class="btn btn-success center-block">Acessar</a>
</div>
</div>
The problem is in the first div
, it has a text greater than the others so the div
below loses line alignment.
These divs
are generated dynamically. I know I can be doing if
to be adding row
to every 3 divs
.
But I would like to know if you have a non-polluting way with ifs
.