pernillajlilja Posted April 5, 2016 Share 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 Link to comment
paul2009 Posted April 6, 2016 Share 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: About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
pernillajlilja Posted April 6, 2016 Author Share 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 Link to comment
paul2009 Posted April 6, 2016 Share Posted April 6, 2016 Sorry, I missed the margin element in the markdown block. I've corrected the answer above. Try that :-) About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
pernillajlilja Posted April 7, 2016 Author Share Posted April 7, 2016 Thank you so much! You just made my day! :) Photographer and storyteller Link to comment
beach117 Posted August 28, 2018 Share 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. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.