CSS conflict in index

1

I have the page below with an error of css :

link

In it it has a div with classe top and within that div I have 3 div's :

<div class="topo">

  <div class="topoTel" id="topoTel"><img src="_img/sgb.png" /></div>

  <div class="topoMeio" id="topoMeio"><h1><?php echo $constantes->getWwwSite(); ?></h1></div>

  <div class="topoRedesSociais" id="topoRedesSociais">
    <img class="face" src="_img/facebook.png" />
    <img class="insta" src="_img/instagram.png" />
  </div>

</div>

To save code that was like this,

 div.topo div.topoTel, 
 div.topo div.topoMeio, 
 div.topo div.topoRedesSociais {
     position:relative;
     display:inline-block;
     vertical-align:middle;
     width: 33%;
 }

I did so:

 div.topo div {
     position:relative;
     display:inline-block;
     vertical-align:middle;
     width: 33%;
 }

But if you look at the web page, you'll find that the layout of the top is messy. It looks like it has been changed from inline-block to block the display of% internal%.

As can be seen below:

whereasthecorrectonewouldbeasbelow:

ButImadeapage,

link

Only with the top part. And to my surprise, the error did not occur!

I have been looking for conflict for a long time and my experience with css is not good, I am not finding it and I ask for your help.

    
asked by anonymous 06.11.2017 / 18:10

1 answer

0

First of all, I strongly recommend using some grid system (like bootstrap), instead of class="topo" , put class="row" , first and last div class="col-md-3" , and central, with% of it there you align to the center, and the other two, the left and the right respectively, and any doubt, just read the bootstrap documentation, maaaas

a solution without this, and add to your following:    class="col-md-6" I think this should solve your problem;)

    
06.11.2017 / 23:00