I have a main DIV, and some buttons within that DIV. I want the buttons to be cut off when they go off the edge of the DIV (like this image here, where the blue is the body, the light grey is the div and the dark grey are the buttons.)
How can I do this?
My HTML:
<body style="background-color: blue;">
<div id="container">
<button style="position: absolute; left:-50px; width:150px; height:50px;">Button</button>
</div>
</body>