iMayra Posted November 21 Share Posted November 21 Hello all! Just starting to learn how to use CSS... I was wondering if I could combine a code that would allow me to add a border to an image block and then change the image shape on hover along with the border. Right now I am using 2 different codes for each (which I'm pretty sure is the issue) but when I add the code to change the image shape on hover, the border does not change and it looks weird... the image changes shape within the border... How can I fix the code, if anyone knows and would be so kind as to help, please 🙂 https://porcupine-lavender-c2sl.squarespace.com (demo) Code I'm using: //IMAGE BORDER// #block-ee70ddcd6eda292ef879{ border: solid 1px black; } //CHANGE IMAGE ON HOVER// #block-ee70ddcd6eda292ef879 img { transition: border-radius 2s ease-out; } #block-ee70ddcd6eda292ef879:hover img { border-radius: 500px; } Link to comment
iMayra Posted November 21 Author Share Posted November 21 Anyone who could take a look and let me know if I can fix this, I would really appreciate it! Link to comment
Solution tuanphan Posted November 24 Solution Share Posted November 24 Don't remove your current code Add this code under #block-ee70ddcd6eda292ef879:hover { border-radius: 500px !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
iMayra Posted November 24 Author Share Posted November 24 @tuanphan that did the trick! You are the absolute best! Thank you so much! 🥰 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