JiroB Posted February 5 Share Posted February 5 (edited) Hi, I would like to add a short text/page description to the top of a certain index page on my site to describe what is shown in the index below. The text i would like to add is now below the index thumbnails but I want this above the thumbnails. This would be used on the following page: https://www.jirobosma.com/drone Can i do that with custom CSS? (I did try this solution but it did not work https://forum.squarespace.com/topic/226702-add-text-to-top-of-index-pages/) Thanks! Edited February 5 by JiroB Link to comment
tuanphan Posted February 7 Share Posted February 7 Something like this body#collection-65ba9c2d82e27a520f220005 .main-content:before { content: "abcxyz"; display: block; text-align: center; margin-bottom: 20px; font-size: 50px; color: white; } 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
JiroB Posted February 9 Author Share Posted February 9 Thanks that works! Can it also be a title line in bold for example, and another couple of lines below it in a normal font? Like the attached image. This is what i have now: body#collection-65ba9c2d82e27a520f220005 .main-content:before { content: "Aerial Cinematography"; display: block; text-align: center; margin-top: 10px; margin-bottom: 30px; font-size: 16px; font-weight: bold; color: grey; } Link to comment
Solution tuanphan Posted February 11 Solution Share Posted February 11 Use this code body#collection-65ba9c2d82e27a520f220005 .main-content:before { content: "Aerial Cinematography \A line 2 line 2 line 2 \A Line 3 line 3 line 3"; display: block; text-align: center; margin-top: 10px; margin-bottom: 30px; font-size: 16px; font-weight: bold; color: grey; white-space: pre-wrap; } 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
JiroB Posted February 11 Author Share Posted February 11 Thanks. Iv'e updated with your code. But the sublines need to be in a different font weight. and the enters aren't working. So like this: Title in bold and size 16. and sublines in normal and size 15. It has to look exactly like this attachment if possible. (the correct text and formatting is below the thumbnails on my site now) Link to comment
tuanphan Posted February 13 Share Posted February 13 If both in different weight, you will need to use Script code, CSS code can't handle this. This will require a Business Plan or higher. 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
JiroB Posted February 13 Author Share Posted February 13 Thats to bad. Thanks for the help! 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