I have a dilemma with my testing website. Whenever I hover over a certain area, a border gets added which causes other elements to move around. I tried adjusting the padding as suggested in some posts, but it didn't solve the issue because it collided with other content.
Here is where I set the border:
#logo:hover {
border: 2px solid cyan;
}
And this is the section it was applied to:
#logo {
width: 200px;
height: 200px;
position: relative;
top: 80px;
line-height: 12em;
border-radius: 200px;
margin: 0 10px 0 10px;
overflow: hidden;
}
If anyone has a solution or advice on how I framed my question, please let me know.
#logo {
background-color: black;
width: 200px;
height: 200px;
position: relative;
top: 80px;
line-height: 12em;
border-radius: 200px;
margin: 0 10px 0 10px;
overflow: hidden;
}
#logo:hover {
border: 2px solid cyan;
}
<div id=logo></div>
Best regards, TheWombatGuru