I made a jsfiddle and as you can see when you hover the div the text jumps 1 pixel to the left. As far as I can tell this is due to the border, but I'm not sure what to do to fix it. Any ideas?
Here is my code:
#weather {
position: fixed;
top:10px;
right:35px;
transition: 0.5s ease;
cursor: pointer;
padding: 5px;
opacity:0.7;
}
#weather:hover {
opacity: 1;
border-left:1px solid #333;
border-right:1px solid #333;
}