Welcome to the Treehouse Community
Looking to learn something new?
Omer Farooq1,985 Points
i have a problem with hover element
i have a problem with hover element i created a hover element on an image and added a border on it when i hover over it image changes position i changes position because of it please i need help
Matthew Lang13,471 Points
I believe you are experiencing a case in which your borders are being added onto your box's outside content. This can be changed with the box-sizing property, with value 'border-box'. This makes the box's (or images) width and height values include the content, padding and border values. For further reference, see here.
Also, here's a JSFiddle that demonstrates that behaviour.