Solved

Dawn Theme: Create margin site wide

Ryanmue
Excursionist
28 0 6

Hey there, 

 

I’m building my website with the Dawn theme. I would like that on the whole website, that there is a margin on both sides. So that, for example, the picture banner doens‘t go completely to the edges. 

does anyone know how I can achieve this?

 

best

// Ryan

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
5127 1224 1498

This is an accepted solution.

Hi @Ryanmue 

Try this. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • Open the theme.liquid and paste the below code before the {% endstyle %}

 

body {
  margin: 20px;
}

 

  • Made4uoRibe_0-1697231092904.png
  • You can change the size of the margin you want. 
  • And Save. 
  • Result:
  • Made4uoRibe_1-1697231116298.png
Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
5127 1224 1498

This is an accepted solution.

Hi @Ryanmue 

Try this. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • Open the theme.liquid and paste the below code before the {% endstyle %}

 

body {
  margin: 20px;
}

 

  • Made4uoRibe_0-1697231092904.png
  • You can change the size of the margin you want. 
  • And Save. 
  • Result:
  • Made4uoRibe_1-1697231116298.png
Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Ryanmue
Excursionist
28 0 6

Thank you so much! It worked as expected. 

Made4uo-Ribe
Shopify Partner
5127 1224 1498

Welcome, please dont forget hit Like. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com