camelliaco Posted September 17 Share Posted September 17 Site URL: https://www.camelliaco.com.au/home I am styling a summary block (grid) and would like to remove the arrow from the 'read more' button. After reading previous posts I have now sucessfully done this, using the following code. However, when I add this code, the button sits off-center. It should be center-justified. Can anyone figure out why this would be? I have uploaded an image of the page with and without the arrow hidden. Page: https://www.camelliaco.com.au/home Page password is: home .sqs-gallery-design-autogrid .summary-read-more-link {font-family: 'Red Hat Mono', monospace; font-size: 0.8rem !important; font-weight: 400; font-style: normal; text-transform: uppercase; letter-spacing: 0.15em; text-decoration: underline; text-align: center; } .summary-read-more-link { visibility: hidden; } .summary-read-more-link:before { content: 'Read More'; visibility: visible; } Link to comment
Solution sorca_marian Posted September 17 Solution Share Posted September 17 Update the last part of the code to .summary-read-more-link:before { content: 'Read More'; visibility: visible; position: absolute; } I noticed that you have a JavaScript error probably from a custom code. "home:8087 Uncaught TypeError: Cannot set properties of null (setting 'innerHTML" It might be executed before the element is in the HTML 👨🔧👨💻 Squarespace plugins 🙋♂️ Squarespace Custom Web Development & Design 📅 Notion alternative 📹 Squarespace Tutorials for free - YouTube📹 💯🚀 I have worked on over 200 Squarespace sites with custom code for over 9 years 🙋♂️ Let's connect on LinkedIn Link to comment
camelliaco Posted October 2 Author Share Posted October 2 Thanks - I have a few things that are a work in progress on this page so I'll get to that later. This sorted my issue with the off-centre text. sorca_marian 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