pernillajlilja Posted April 5, 2016 Posted April 5, 2016 Hi! Can I change the background color of my Instagram block on my home page? http://jangendahllilja.com/ I'd like to have a light grey background color on the Instagram block, to separate it from the other blocks on the home page. Similar to the one on the bottom of this page: http://jasminestar.com/blog/. I am CSS illiterate. Any help much appreciated. Many thanks! Photographer and storyteller
paul2009 Posted April 6, 2016 Posted April 6, 2016 Pernilla (@pernillajlilja) You can add the light grey background to the Instagram block by adding the following Custom CSS to the site: #collection-56fd2834b654f9cb18e92ab8 { .instagram-block { background-color: #efefef; } } The first line means it will only apply to this page (collection....ab8 is the unique name for your blog page).The next two lines change it to the same grey as the site you mentioned - colour #efefef or "gallery". However, the CSS above will only change the background of the Instagram-block itself. If you want the title "Följ mig gärna på Instagram" to have the same background as it does on the other site, you'll want to add a markdown-block for the title, in place of the text-block. This will allow you to format the text. Add a markdown block and type the following markdown into it: <div style="background-color: #efefef; padding: 10px; margin: -17px;">Följ mig gärna på Instagram </div> This will give the title the same colour background. The padding adds a little space around it in the same colour. I hope that helps!Paul Example with the code: Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
pernillajlilja Posted April 6, 2016 Author Posted April 6, 2016 You are spot on Paul, (@Paul2009). Thank you! Do you know why I get a space between the markdown block and the Instagram block? The Instagram block also seems wider. Best Pernilla Photographer and storyteller
paul2009 Posted April 6, 2016 Posted April 6, 2016 Sorry, I missed the margin element in the markdown block. I've corrected the answer above. Try that :-) Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
pernillajlilja Posted April 7, 2016 Author Posted April 7, 2016 Thank you so much! You just made my day! :) Photographer and storyteller
beach117 Posted August 28, 2018 Posted August 28, 2018 hey hey there. I was looking for exactly this solution, but unfortunately it doesn't work on my site : www.white-images.comDoes the CSS code also work in the footer area? Or what am I doing wrong? Thanks in advance.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.