Dear Team,
i have sections with two columns. One contains a background image that i want to scale on hover and also be a link. the other column contains text, a .svg and a button.
I have the following code in the global css for scaling the background image:
.page-id-114 #x-section-3 .x-column:hover:nth-child(1) {
transition: all .5s;
transform: scale(1.1);
}
This works except that the image overflows the column, what i don‘t want.
In the css-style field of the column with the background-image i have the following code:
background-image: url(“http://dev.plusquadrat-projects.de/duhnen/wp-content/uploads/2018/02/Duhnen-Living_Aussen-1.jpg”);
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
vertical-align: middle:
For linking the background image / column i used the following js:
(function($){
$(’’).insertBefore(’.linked-column’);
$(’.linked-column’).prependTo( $(’#column-link’) );
})(jQuery);
But after giving the id and the class to the columns the background images disappeared…
To provide you every code i added for the section with the columns, that is what i use to change the background-color of the text-column on hover:
.page-id-114 #x-section-3 .x-column:hover:nth-child(2) {
transition: background-color 0.3s ease;
background-color: #0a1f2e !important;
}
To clearify what i want to achieve:
- Background-images should not overflow the normal column-size
- Background-images / whole columns should be links
I hope you can help me solve this problem…
Thanks a lot in advance and best regards.
Ingo