Is there a way to make an element adjust its width based on the container size without overflowing it?
body {
-moz-osx-font-smoothing: grayscale;
font-family:Verdana;
font-weight:normal;
font-size:12px;
}
#BorderContainer2085 {
position:absolute;
top:30px;
left:37px;
width:340px;
height:160px;
display:inline-block;
border-width:1px;
border-color:#696969;
border-style:solid;
border-radius:0px;
}
#Button1199 {
position:absolute;
top:19px;
margin-left:20px;
margin-right:20px;
width:100%;
}
<div id="BorderContainer2085">
<input id="Button1199" type="button" value="Button">
</div >
My current output:
https://i.sstatic.net/W9UDD.png
Desired output: