My goal was to align the icon buttons with the dynamic table on their right side, but they are overflowing slightly instead. Desired look / Current appearance . Before sharing my code block, I experimented with various options:
- Adjusting padding, margin, and line-height.
- Removing extra spaces between elements in the HTML structure.
- Applying Bootstrap utility classes like py-0, px-0.
- Using CSS properties like display:flex, align-items:space-between.
Finally, here's the snippet of my code:
.actions-column {
padding: 0px;
}
.values-column {
padding-right: 0px;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
...
</div>
</div>
UPDATE
To solve the issue, I created a custom CSS class and adjusted the button size manually.
.actions-column {
padding: 0px;
}
.values-column {
padding-right: 0px;
}
.customButton{
height:3rem; /*Lower than the default size in bootstrap*/
}
<link rel="stylesheet" ...
...
</div>