PoppyShotts Posted January 31 Share Posted January 31 Password: eleanor I have used the following code in the image description of each image in these two galleries to create a text overlay on hover. However, I now need to centre the text - please could someone help me alter the code to do this? Code: <a href="https://www.waterperryoperafestival.co.uk/2022.html">MANSFIELD PARK <br> WATERPERRY OPERA FESTIVAL </a> Thank you! Poppy Link to comment
Ziggy Posted January 31 Share Posted January 31 If you add: style="text-align:center;" It should center the text, like this: <a href="https://www.waterperryoperafestival.co.uk/2022.html" style="text-align:center;">MANSFIELD PARK <br> WATERPERRY OPERA FESTIVAL </a> Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
PoppyShotts Posted January 31 Author Share Posted January 31 Hi, this code is not enabling my to center my text as I need (see below), any ideas? MANSFIELD PARK WATERPERRY OPERA FESTIVAL Link to comment
Ziggy Posted February 1 Share Posted February 1 Can you share your website URL? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
PoppyShotts Posted February 1 Author Share Posted February 1 https://lime-papaya-8nlj.squarespace.com/revivals/assisting password: eleanor thank you! Link to comment
Solution Ziggy Posted February 1 Solution Share Posted February 1 Try adding this Custom CSS: .gallery-caption p.gallery-caption-content { text-align: center !important; } Let me know if that works. Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
PoppyShotts Posted February 1 Author Share Posted February 1 Fixed! Thanks so much for your help 🙂 Ziggy 1 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