Situation
I am currently creating a website and want some elements to create a border / outline when you mouse over them. It is simple enough to do the job. For reference, please go to the staging site link to the Stagin area . I use the net part of the last boot machine and the box size model.
Problem
I find that when steaming, content below what hangs is βpushedβ far below the next element. Using the stagin area as a link, I can change the behavior using CSS to fix this on the left or right side, but not at the same time.
code
Here is the CSS snippet that I use to create the effect:
.hover-border:hover { border: 3px solid #3A3A3A; display: block; }
Using this method, nothing but the first element behaves as expected. If I try the following snippet, the first element will work, but the rest will break:
.hover-border:hover { border: 3px solid #3A3A3A; display: block; margin-top: -6px; }
For clarification regarding the properties inherited, I set the margin / padding for the items in question to "0! Important" for standard behavior, while hover
Problem
How can I block an item below?
source share