3
I have in my system a situation similar to the one I gave of example. A modal bootstrap that can open in basically any place of the screen. This modal does not occupy every screen. Within this modal, some records are listed, according to the context. In this modal, I have a div with the record maintenance buttons (edit, delete, include, etc.). I would like this div with the buttons to always be in the lower right corner of the modal, fixed (because the modal is scrollable, according to the number of records), but I’m not able to do. I’ve tried to put position: fixed
and a margin-left
calculated at the time, but did not work as I wanted
.botoes-modal{
width: 120px;
height: 40px;
background-color: green;
}
<div style="overflow-y: auto; height: 200px;">
<table>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
<tr><td>teste</td><td>teste</td></tr>
</table>
<div id="botoes-acao" class="botoes-modal">
Clique para editar
</div>
</div>
That way it doesn’t work. I had tried, and it is in the corner of the screen. I need it to be in the corner of the modal
– Artur Trapp