Aligning two Divs on a Modal

Asked

Viewed 76 times

1

I have a question to align two Divs using Bootstrap.

<div class="info-suporte col-sm-8">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th><div class="foto" ></div></th>
                                    <th><div class="bloco"><p id="modal-bloco">Bloco 6</p></div></th>
                                    <th><div class="corte">Corte</div></th>
                                    <th><div class="lr">AP</div></th>
                                    <th><div class="hr">AQ</div></th>
                                    <th><div class="tar lr">AP</div></th>
                                    <th><div class="hr">AQ</div></th>
                                    <th><div class="lr">AP</div></th>
                                    <th><div class="hr">AQ</div></th>
                                    <th><div class="alta_prioridade">AP</div></th>
                                    <th><div class="alta_qualidade">AQ</div></th>
                                    <th><div class="publicacao integra">Integra</div></th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="row-inicio">
                                    <th scope="row">Início</th>
                                    <td class="bloco"></td>
                                    <td class="cut"></td>
                                    <td class="lr"></td>
                                    <td class="hr"></td>
                                    <td class="lr"></td>
                                    <td class="hr"></td>
                                    <td class="lr"></td>
                                    <td class="hr"></td>
                                    <td class="alta_prioridade"></td>
                                    <td class="alta_qualidade"></td>
                                    <td class="pub"></td>
                                </tr>
                                <tr class="row-fim">
                                    <th scope="row">Fim</th>
                                    <td class="bloco"></td>
                                    <td class="cut"></td>
                                    <td class="lr"></td>
                                    <td class="hr"></td>
                                    <td class="lr"></td>
                                    <td class="hr"></td>
                                    <td class="lr"></td>
                                    <td class="hr"></td>
                                    <td class="alta_prioridade"></td>
                                    <td class="alta_qualidade"></td>
                                    <td class="publicacao"></td>
                                </tr>
                                <tr class="row-total">
                                    <th scope="row">Duração</th>
                                    <td class="bloco"></td>
                                    <td class="corte"></td>
                                    <td class="lr"></td>
                                    <td class="hr"></td>
                                    <td class="lr"></td>
                                    <td class="hr"></td>
                                    <td class="lr"></td>
                                    <td class="hr"></td>
                                    <td class="alta_prioridade"></td>
                                    <td class="alta_qualidade"></td>
                                    <td class="publicacao"></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="col-sm-2 sla" id='modal-sla'>
                        <div class="sla-title col-sm-12 info-suporte-badge erro">
                            <p>SLA</p>
                        </div>
                        <div class="sla-body col-sm-12">
                            <p >Total Previsto</p>
                            <p class="sla-time previsto"></p>
                        </div>
                        <div class="sla-body col-sm-12">
                            <p>Total Efetivo</p>
                            <p class="sla-time efetivo"></p>
                        </div>
                    </div>

I tried harder I couldn’t line those two up div. To div with class="col-sm-2" It’s above the table. It is worth noting that they are in a modal and from what I noticed the table is too big to put one next to the other.

1 answer

0

I believe that is exactly the problem that commented... the table is too big and it ends up getting bigger than the size of the div in the bootstrap... I made a test here and when resizing the window we can see that the table is below... when the item is not a table, it works ok...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.