Jump to content

Make a full-width block

Recommended Posts

Site URL: https://www.shiyuportfolio.com/sonyc

Hi! My goal is  to add a full-width block background color by using code on this section (see attached image). I have some knowledges about HTML and CSS so I have no problem insert a background color, but the background color is not a full-width block, it has some padding in the left and right side that align with other contents. Can somebody helps to fix it? This is the URL of the site - https://www.shiyuportfolio.com/sonyc

 

2087431562_ScreenShot2020-08-17at3_31_56PM.thumb.png.8821adf70447b4bc664175be0b03b71c.png

Link to comment
  • Replies 2
  • Views 368
  • Created
  • Last Reply

Your site is not fullwidth, very time-consuming to set code block fullwidth.

First, remove margin/padding main#page id

Next, set Code Block background color

Then, set margin/padding for all elements, Except code block

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.