Is there a way to ensure that a button floats only within a specific div area?
Below is the CSS and HTML example for reference.
.test {
width: 60%;
display: inline;
overflow: auto;
white-space: nowrap;
margin: 0px auto;
}
<div class='test'>
<div style='float: left;'>
<button>test</button>
</div>
<div style='float: right;'>
<button>test</button>
</div>
</div>
The desired outcome should look like this: