My issue involves a main DIV with buttons contained within it. I am seeking a solution to ensure that the buttons are cut off at the edge of the DIV, similar to the concept illustrated in this image. In the image, the blue represents the body, the light grey symbolizes the div, and the dark grey indicates the buttons.
If you have any advice on how to achieve this effect, please let me know!
This is a snippet of my HTML code for reference:
<body style="background-color: blue;">
<div id="container">
<button style="position: absolute; left:-50px; width:150px; height:50px;">Button</button>
</div>
</body>