Hi There,
Thanks for the clarification!
This is not possible with the current structure you have for the grid.
You have to change the structure to make it happen.
Please follow the below steps.
- Please give a custom class name to the columns, suppose its name is
.gridblock
.
- Put all the text in a single text element instead of separate elements.
The text element HTML structure should be similar to this
<span> Manažer Studia Wella</span>
<h4>Monika BertlovĆ” </h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
- Give a class name to the text block.
.gridtext
- Add the following CSS to your page CSS or theme Option -> CSS
.gridtext {
padding: 40px 50px; /* you can set this using text setting in page builder */
margin-top: -50px; /* you can set this using text setting in page builder */
z-index: 9; /*this is to overlap the image element above.*/
transition: 1s ease;
}
.gridtext span {
font-size: 14px;
font-family: "your font name"
margin-bottom: 20px;
}
.gridtext h4 {
font-size: 30px;
font-family: "your font name"
margin-bottom: 20px;
}
.gridtext p {
font-size: 14px;
font-family: "your font name"
}
.gridblock:hover {
cursor: pointer;
}
.gridblock:hover .gridtext {
margin-top: 0px !important;
}
If you have basic understanding about CSS, then please do miner changes to match exactly ass per the design.
I would like to point put one thing that, this is something related to an custom CSS, which we usually avoid because this is something out of our theme support scope. If you still have issue please contact a developer to help you on this, as this is the feature not available in the theme.
If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.
I recommend you to watch following video that will help you to get started with CSS.
https://www.youtube.com/watch?v=MFR4WXiLzpc
Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.
https://developers.google.com/web/tools/chrome-devtools/css/
https://developers.google.com/web/tools/chrome-devtools/
https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s
Thanks.