I've run into a specific issue with a div element that contains multiple buttons. I am trying to adjust the height and position of one button so that it takes up space above the other buttons, but every time I make changes to its height and position, it causes the adjacent buttons to shift downwards.
#Cal_Border {
background-color:white;
border:1px solid black;
display:inline-block;
padding:2px;
}
#Num_View {
background-color:white;
border:1px solid black;
width:98.4%;
}
.Button {
background-color:white;
border:1px solid black;
width:22.9%;
height:10%;
padding-top:2px;
margin-bottom:0;
margin-bottom:2px;
}
#Equals {
height:40px;
position:relative;
top:-20px;
}
#Cal_Border input:focus {
outline:none;
}
<div id="Cal_Border">
<input type="text" id="Num_View" /><br />
<input type="button" value="<--" class="Button" />
<input type="button" value="C" class="Button" />
<input type="button" value="-/+" class="Button" />
<input type="button" value="/" class="Button" /><br />
<input type="button" value="1" class="Button" />
<input type="button" value="2" class="Button" />
<input type="button" value="3" class="Button" />
<input type="button" value="x" class="Button" /><br />
<input type="button" value="4" class="Button" />
<input type="button" value="5" class="Button" />
<input type="button" value="6" class="Button" />
<input type="button" value="-" class="Button" /><br />
<input type="button" value="7" class="Button" />
<input type="button" value="8" class="Button" />
<input type="button" value="9" class="Button" /><br />
<input type="button" value="0" class="Button" />
<input type="button" value="." class="Button" />
<input type="button" value="+" class="Button" />
<input type="button" value="=" class="Button" id="Equals" />
</div>