Guest Posted February 10, 2014 Share Posted February 10, 2014 Does anyone know how I could change the background color of a Text Block? Link to comment
tazmeah Posted February 14, 2014 Share Posted February 14, 2014 The easiest way is to probably use a Markdown Block instead of a Text Block. Let’s say you have this written in a text block:“And here’s to you, Mrs. Robinson, Jesus loves you more than you will know.” Paste it into a Markdown Block and surround the part you want to “highlight” with span tags like this: "And here's to you, <span style="background-color:green">Mrs. Robinson</span>, Jesus loves you more than you will know." Link to comment
Guest Posted July 14, 2014 Share Posted July 14, 2014 tazmeah’s suggestion of Markdown blocks is fantastic. You can also insert divs with your own styling such as background colors. Note that if you put two Markdown blocks next to each other, Squarespace will automatically merge them for you into one Markdown block. So here’s an example of two text blocks with custom (light gray via alpha) background color. One block is on top of the other with some space in between them (via margin-top), and some padding around the divs on top/bottom: <div style="background-color:rgba(0, 0, 0, 0.0470588); text-align:center; vertical-align: middle; padding:40px 0;"> <a href="/donate">DONATE</a> </div> <div style="background-color:rgba(0, 0, 0, 0.0470588); text-align:center; vertical-align: middle; padding:40px 0; margin-top:30px"> <a href="/blog">VIEW THE BLOG</a> </div> Link to comment
Guest Posted July 14, 2014 Share Posted July 14, 2014 Fantastic solution, thanks! I also see that divs can be inserted, with an example I listed in an answer here too. Link to comment
rkay72 Posted November 5, 2014 Share Posted November 5, 2014 That works a treat! A couple of questions: How do I create more than one line of text in my Markdown Block? How can I change the colour and size of the font? Thanks Link to comment
Scoobie Posted July 30, 2015 Share Posted July 30, 2015 Here is a new tool provided via Chrome Extension that's designed to help identify a Squarespace Blocks unique ID - for custom CSS purposes https://chrome.google.com/webstore/detail/squarespace-collectionblo/bggpdfnccodbnmcndckmeehdjkjojkde Example here:http://www.bcarroll.us/developer-platform-tutorials/2015/5/19/chrome-extension-squarespace-collection-block-identifier Link to comment
mcdent Posted February 8, 2016 Share Posted February 8, 2016 Bit late to the party, just wondering if there is anyway to position an image to the left or right of a markdown block.I'm trying to achieve something like http://www.shopkeep.com/pos-systemWhere there are block of text with differing colours and images to the right and left of the text. Any ideas? Thanks!Mike Link to comment
mcdent Posted February 8, 2016 Share Posted February 8, 2016 Bit late to the party, just wondering if there is anyway to position an image to the left or right of a markdown block.I'm trying to achieve something like http://www.shopkeep.com/pos-systemWhere there are block of text with differing colours and images to the right and left of the text. Any ideas? Thanks!Mike Link to comment
Justin Posted February 8, 2016 Share Posted February 8, 2016 @mcdent Seeing as this post is 2 years old, I would suggest opening a new question. Also try being a little more specific with what you are trying to accomplish and include a link to your site. Link to comment
scottj Posted November 21, 2016 Share Posted November 21, 2016 Wow! Thanks so much for this. I had no idea this existed!!! :D Link to comment
Brucepiano Posted November 14, 2017 Share Posted November 14, 2017 This is great!!! Thanks for the solution. Link to comment
Guest Posted November 30, 2017 Share Posted November 30, 2017 This is great! How do we use the same fonts which are in our theme for this? Link to comment
ship69 Posted April 3, 2018 Share Posted April 3, 2018 Just to get clear, if you copy and past when @jpeksin wrote it won't work. The reason is that SquareSpace's MarkDown can't cope with more than three space characters at the start of each line. i.e. This fails: DONATE but this works: DONATE Cheers J I am new here. I am trying to develop a simple website on SquareSpace. So far I am finding it pretty darned frustrating. Link to comment
AskQuesty Posted May 31, 2019 Share Posted May 31, 2019 Hi @mrobinson99, I made a video tutorial for you on how to Change Background Color. Hope this helps! https://www.askquesty.com/post/change-background-color Have Squarespace questions/task and need help today? **You can hire us here.** Our answers are on-demand, video recorded, and only cost between $5 to $25. Estimates are free, 100% satisfaction guarantee, and trusted by hundreds of small businesses. Link to comment
ashleemundywebsitede Posted May 13, 2020 Share Posted May 13, 2020 On 5/31/2019 at 6:09 AM, AskQuesty said: Hi @mrobinson99, I made a video tutorial for you on how to Change Background Color. Hope this helps! https://www.askquesty.com/post/change-background-color Thanks for the video! What would you add to the code to change the color of the text inside the block? And also the line spacing? Thanks! Link to comment
tuanphan Posted May 13, 2020 Share Posted May 13, 2020 4 hours ago, ashleemundywebsitede said: Thanks for the video! What would you add to the code to change the color of the text inside the block? And also the line spacing? Thanks! Add to Home > Design > custom CSS #enter-text-block-id { background: red; } #enter-text-block-id * { color: white; } Find ID with: https://chrome.google.com/webstore/detail/squarespace-collectionblo/bggpdfnccodbnmcndckmeehdjkjojkde 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
ashleemundywebsitede Posted May 15, 2020 Share Posted May 15, 2020 On 5/13/2020 at 4:51 AM, tuanphan said: Add to Home > Design > custom CSS #enter-text-block-id { background: red; } #enter-text-block-id * { color: white; } Find ID with: https://chrome.google.com/webstore/detail/squarespace-collectionblo/bggpdfnccodbnmcndckmeehdjkjojkde Thank you so much! :):) Link to comment
Nanakoco Posted August 26, 2020 Share Posted August 26, 2020 On 5/31/2019 at 12:09 PM, AskQuesty said: Hi @mrobinson99, I made a video tutorial for you on how to Change Background Color. Hope this helps! https://www.askquesty.com/post/change-background-color Hi, how can I change the background color into a 50% transparent white, so the text block is just a bit lighter than the color it is on? Link to comment
tuanphan Posted August 26, 2020 Share Posted August 26, 2020 3 hours ago, Nanakoco said: Hi, how can I change the background color into a 50% transparent white, so the text block is just a bit lighter than the color it is on? Use rgba color, eg Quote background-color: rgba(0,0,0,0.5) /* black with 50% transparent */ 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
Guest Posted January 13, 2021 Share Posted January 13, 2021 Is there a way to have this span the entire width of the page, edge to edge, in the Hayden 7.0 template? Link to comment
tuanphan Posted January 13, 2021 Share Posted January 13, 2021 1 minute ago, overflowg said: Is there a way to have this span the entire width of the page, edge to edge, in the Hayden 7.0 template? Yes. Possible. I just answered a similar question 5 minutes ago. Is it your post or? 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
Guest Posted January 14, 2021 Share Posted January 14, 2021 On 1/12/2021 at 10:11 PM, tuanphan said: Yes. Possible. I just answered a similar question 5 minutes ago. Is it your post or? I posted a similar question but the code provided unfortunately removed the padding from the images below that text block. Any solution for that? I forgot I had two accounts. Will need to remove this one. Link to comment
tuanphan Posted January 17, 2021 Share Posted January 17, 2021 On 1/14/2021 at 11:22 AM, overflowg said: I posted a similar question but the code provided unfortunately removed the padding from the images below that text block. Any solution for that? I forgot I had two accounts. Will need to remove this one. Can you share link to that post? We can check again easier. 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
Mania Posted February 8, 2021 Share Posted February 8, 2021 I have a issue with the effects of the code displaying only when I go to Design --> Custom CC. It has to do with this code specifically, which creates a translucent-white background for text in a specified block: #block-848b3e4b0bc6ae27ccc5 { <---- my block ID background-color: #f0f0f088; padding: 1px; text-align: center; } Any ideas what went wrong? Link to comment
tuanphan Posted February 9, 2021 Share Posted February 9, 2021 16 hours ago, Mania said: I have a issue with the effects of the code displaying only when I go to Design --> Custom CC. It has to do with this code specifically, which creates a translucent-white background for text in a specified block: #block-848b3e4b0bc6ae27ccc5 { <---- my block ID background-color: #f0f0f088; padding: 1px; text-align: center; } Any ideas what went wrong? Can you share link to page where you added text? We can help easier 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.