Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Line up borders on several sections in Dawn theme

Solved

Line up borders on several sections in Dawn theme

jasminsharp97
Shopify Partner
78 1 31

I'm working on this website: https://maison-rouge-ny.myshopify.com/pages/about

PW: thifis

 

I'm adding borders to several sections, and I want the borders to all be aligned so it looks like it's all the same section. But some of the borders stay boxed and some are full width, like in the picture below. How do I fix this?

Screenshot 2024-11-19 204254.png

Accepted Solution (1)

Vinsinfo
Shopify Partner
460 158 157

This is an accepted solution.

@jasminsharp97 Please follow the below steps to align the borders properly to display the sections as the same section. Let us know whether it is helpful for you.

 
1. From admin, go to "Online Store" -> "Themes".
2. Click the action button from the current theme and select "Edit code".
3. Search and locate the base.css file. Add the below CSS code in the base.css file at the bottom of the file, like in the below attached screenshot.

 

#shopify-section-template--18647897604308__image_banner_KXaWmJ, #shopify-section-template--18647897604308__rich_text_9HmjKP, #shopify-section-template--18647897604308__image_with_text_halves_Me8QpC, #shopify-section-template--18647897604308__17319713741739bb5f {
    width: 87% !important;
    margin: 0px auto;
}
#shopify-section-template--18647897604308__image_with_text_halves_Me8QpC .page-width, #shopify-section-template--18647897604308__17319713741739bb5f .page-width {
    padding: 0px;
}

 

Vinsinfo_1-1732085912519.png

 

 
4. Final results will be like,
Vinsinfo_2-1732085923629.png

 

 
Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.
Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support

View solution in original post

Replies 5 (5)

PageFly-Richard
Shopify Partner
4801 1085 1753

This is Richard from PageFly - Shopify Page Builder App

 

Hi  @jasminsharp97  Please add code here to fix it:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file theme.liquid
Step 3: Add code above the tag </body>

 

<style>
  #shopify-section-template--18647897604308__image_with_text_halves_Me8QpC .page-width{
   max-width: 100% !important;
    margin-left: 5%;
    padding-left: 0%;
    margin-right: 5%;
    padding-right: 0px;
}
#shopify-section-template--18647897604308__17319713741739bb5f .page-width{
    max-width: 100% !important;
    margin-left: 5%;
    padding-left: 0%;
    margin-right: 5%;
    padding-right: 0px;
}
</style>

 

Result:

Ảnh màn hình 2024-11-20 lúc 14.01.11.png

Hope my solution will help you resolve the issue.

 

Best regards,

Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

Vinsinfo
Shopify Partner
460 158 157

This is an accepted solution.

@jasminsharp97 Please follow the below steps to align the borders properly to display the sections as the same section. Let us know whether it is helpful for you.

 
1. From admin, go to "Online Store" -> "Themes".
2. Click the action button from the current theme and select "Edit code".
3. Search and locate the base.css file. Add the below CSS code in the base.css file at the bottom of the file, like in the below attached screenshot.

 

#shopify-section-template--18647897604308__image_banner_KXaWmJ, #shopify-section-template--18647897604308__rich_text_9HmjKP, #shopify-section-template--18647897604308__image_with_text_halves_Me8QpC, #shopify-section-template--18647897604308__17319713741739bb5f {
    width: 87% !important;
    margin: 0px auto;
}
#shopify-section-template--18647897604308__image_with_text_halves_Me8QpC .page-width, #shopify-section-template--18647897604308__17319713741739bb5f .page-width {
    padding: 0px;
}

 

Vinsinfo_1-1732085912519.png

 

 
4. Final results will be like,
Vinsinfo_2-1732085923629.png

 

 
Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.
Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support
jasminsharp97
Shopify Partner
78 1 31

Thank you so much, this fixed it!

AnneLuo
Shopify Partner
1138 211 235

You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code before the </head> tag

<style>
  #shopify-section-template--18647897604308__image_with_text_halves_Me8QpC .page-width,
#shopify-section-template--18647897604308__17319713741739bb5f .page-width {
  padding-left: 0;
  padding-right: 0;
  max-width: 100% !important;
  margin: 0 5%;
}

</style>

After:

AnneLuo_0-1732087281113.png

 


Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

Vinsinfo
Shopify Partner
460 158 157

@jasminsharp97 Please follow the below steps to align the borders properly to display the sections as the same section. Let us know whether it is helpful for you.

 
1. From admin, go to "Online Store" -> "Themes".
2. Click the action button from the current theme and select "Edit code".
3. Search and locate the base.css file. Add the below CSS code in the base.css file at the bottom of the file, like in the below attached screenshot.

 

#shopify-section-template--18647897604308__image_banner_KXaWmJ, #shopify-section-template--18647897604308__rich_text_9HmjKP, #shopify-section-template--18647897604308__image_with_text_halves_Me8QpC, #shopify-section-template--18647897604308__17319713741739bb5f {
    width: 87% !important;
    margin: 0px auto;
}
#shopify-section-template--18647897604308__image_with_text_halves_Me8QpC .page-width, #shopify-section-template--18647897604308__17319713741739bb5f .page-width {
    padding: 0px;
}

 

Vinsinfo_0-1732098492955.png

 

 

4. Final results will be like,
Vinsinfo_1-1732098492973.png

 

 

Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.
Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support