So I have been trying to cause the button to stretch when I hover over it and for it to have a 3D effect when I click on it. All is good on the button's end and it does exactly as it should. Problem is...when the button stretches, the paragraph below it also moves down and the paragraph moves even farther down when I press the button. Anyway this can be rectified so the position of the paragraph remains fixed?
.test-button {
background-color:navy;
color:white;
border:none;
cursor:pointer;
padding-top:8px;
padding-bottom:8px;
padding-left:15px;
padding-right:15px;
font-size:18px;
box-shadow:3px 3px 5px rgba(0, 0, 0, 0.5);
transition:padding 0.15s;
}
.test-button:hover {
padding-bottom:18px;
padding-top:18px;
padding-right:25px;
padding-left:25px;
}
.test-button:active {
margin-top:3px;
margin-bottom:3px;
box-shadow:none;
}
