aquidos Posted April 29 Share Posted April 29 Hello! I have a simple list, and I've managed to display text on hover over any image in the list. However, I'm having trouble fixing the position of that text. I want the texts to appear only in the area of the preceding image and all of them start from the same height, but as you can see in the attached image, this is not happening. The CSS code I'm using is as follows: <style> .user-items-list-item-container[data-section-id="yui_3_17_2_1_1713967083544_496"] img { content: unset !important; } </style> <style> .list-item:hover .list-item-content__description { transition: all 1s; opacity:1 } .list-item:hover .list-item-media { transition: all 1s; opacity:0 } .list-item-content__title { position:absolute; top: 95%; left: 2%; width: 100%; } .list-item-content__description *{ color:white!important margin: 20%; justify-content: start; } .list-item-content__description { position:absolute; top: 40%; left:50%; transform: translate(-50%, -50%); z-index: 9999; width: 100%; border:0; text-align: left; opacity: 0; } ul.user-items-list-simple li { position: relative } ul.user-items-list-simple li:hover .list-item-content { opacity: 1; transition: 0.5s ease; } .list-item-content * { max-width: 95% !important; } @media only screen and(max-width:640px){ .list-item-content { opacity:1!important } } </style> Link to comment
tuanphan Posted May 1 Share Posted May 1 Can you share link to page in screenshot? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
aquidos Posted May 13 Author Share Posted May 13 Sure! Here you have the link: https://techdos.squarespace.com/config/pages Link to comment
tuanphan Posted May 17 Share Posted May 17 On 5/13/2024 at 8:34 PM, aquidos said: Sure! Here you have the link: https://techdos.squarespace.com/config/pages What is password? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment