5
I’m developing this site in bootstrap http://raissafigueiredo.com.br/masterclinic/
However, downstairs in the specials section, I have 7 elements in the same line. I had to use a "technical gambiarra" to align them, because I did not find a specific class that composes the 7 in the same line. In the desktop version everything is fine, but in the mobile version the elements are aligned to the left and disorganized.
Follow my code below:
<div class="feature-box">
<div class="col-sm-2 text-center wow fadeInUp animated" style="visibility: visible; animation-name: fadeInUp;" data-wow-animation-name="fadeInUp">
<div class="feature-box-heading">
<em>
<img width="59" height="55" alt="" src="img/icon-botox.png">
</em>
<h4>Botox e DTM</h4>
</div>
</div>
<div class="col-sm-2 text-center wow fadeInUp animated" style="visibility: visible; animation-name: fadeInUp;" data-wow-animation-name="fadeInUp">
<div class="feature-box-heading">
<em>
<img width="41" height="55" alt="" src="img/icon-clareamento.png">
</em>
<h4>Clareamento</h4>
</div>
</div>
<div class="col-sm-2 text-center wow fadeInUp animated" style="visibility: visible; animation-name: fadeInUp;" data-wow-animation-name="fadeInUp">
<div class="feature-box-heading">
<em>
<img width="50" height="55" alt="" src="img/icon-implantes.png">
</em>
<h4>
Implantes
</h4>
</div>
</div>
<div class="col-sm-2 text-center wow fadeInUp animated" style="visibility: visible; animation-name: fadeInUp;" data-wow-animation-name="fadeInUp">
<div class="feature-box-heading">
<em>
<img width="50" height="55" alt="" src="img/icon-estetica.png">
</em>
<h4>
Estética
</h4>
</div>
</div>
<div class="col-sm-2 text-center wow fadeInUp animated" style="visibility: visible; animation-name: fadeInUp;" data-wow-animation-name="fadeInUp">
<div class="feature-box-heading">
<em>
<img width="50" height="55" alt="" src="img/icon-odontologia.png">
</em>
<h4>
Odontologia
</h4>
</div>
</div>
<div class="col-sm-2 text-center wow fadeInUp animated" style="visibility: visible; animation-name: fadeInUp;" data-wow-animation-name="fadeInUp">
<div class="feature-box-heading">
<em>
<img width="50" height="55" alt="" src="img/icon-canal.png">
</em>
<h4>
Tratamento de Canal e Ronco
</h4>
</div>
</div>
<div class="col-sm-2 text-center wow fadeInUp animated" style="visibility: visible; animation-name: fadeInUp;" data-wow-animation-name="fadeInUp">
<div class="feature-box-heading">
<em>
<img width="38" height="55" alt="" src="img/icon-proteses.png">
</em>
<h4>
Próteses
</h4>
</div>
</div>
</div>
I edited the percentage so that the elements behave on the same line without breaking.
#home-especialiadade .col-sm-2 {
width: 14.2%;
}
Marcelo, welcome to Sopt! Explain better, which elements you need to align? What have you tried? Edit the question and enter the code you already have, it will be easier for someone to help you.
– mauricio caserta
Thanks Mauricio. I edited and put the codes.
– Marcelo Victor
Bootstrap has a grid system that can help you with that. http://getbootstrap.com/css/#grid
– Diego Souza