I'm currently working on a website where I have divs that expand when hovered over, revealing a link inside. Everything was going smoothly with a div that expanded to the left, but I encountered some issues when trying to create an exact mirror image that expands to the right.
.hoofdvak
{
width: 100%;
height: 100%;
overflow: hidden;
padding: 0px;
text-align: center;
position: relative;
}
.linkerwrap
{
width: 47%;
height: 100%;
display: inline-block;
vertical-align: middle;
position: relative;
overflow: hidden;
}
.rechterwrap
{
width: 47%;
height: 100%;
display: inline-block;
vertical-align: middle;
position: relative;
overflow: hidden;
}
.inhoudlinks
{
border-radius: 50px 10px 10px 50px;
border: 2px solid #FFFFFF;
background-color: #BEBEBE;
opacity: 0.4;
padding: 10px;
...
... <!-- The rest of the CSS code remains unchanged -->
My main issue is why "inhoudlinklinks" responds correctly to "padding-left: 48%" but not to "padding-right: 48%" in the case of "inhoudlinkrechts". It's perplexing.
I'm struggling to adjust the distance between "inhoudlinkrechts" and the right edge of its parent div "inhoudrechts."
Currently, the content extends out of the div on the left side and only becomes visible when hovered over. I want to achieve the same effect on the right side as well.
If anyone has any insights or solutions, I would greatly appreciate it!