Without your actual code in CSS, HTML it is difficult to understand exactly what you are asking, from the little above you can however achieve the same result with just using CSS and HTML -
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Buttons with Spacing and a Horizontal Scrollbar</title>
<style>
body {
margin: 0;
padding: 0;
box-sizing: border-box;
min-width: 500px;
}
.wrapper {
padding: 20px;
}
.container {
width: 100%;
height: 200px;
border: 1px solid #000;
margin-bottom: 12px;
}
.button-container {
display: flex;
justify-content: space-between;
margin-bottom: 12px;
}
button {
padding: 10px 20px;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="container">
<p>Content goes here...</p>
</div>
<div class="button-container">
<button>Button 1</button>
<button>Button 2</button>
</div>
</div>
</body>
</html>
I made a fiddle that seems to work fine -
Space a DIV, Buttons with and without Horizontal Scrollbar[
^]
The code should be self explanatory.