Shopify themes, liquid, logos, and UX
Hi - I'm using the theme 'Stiletto' and I have set certain rich text sections to have background using custom css. However no matter what I try, the background doesn't span across the full width on extra large desktop screens. Normal sized screens + mobile seem to be fine.
Can you see what my issue is in the code?
https://6avus8gq4ba33xrb-88967512345.shopifypreview.com password: hellobgc1
Solved! Go to the solution
This is an accepted solution.
The section seems to have the "max-width" property which is restricting it to span out completely.
Please use the below CSS (Change the CSS selector if you want to target those two specific sections):
[data-section-type="rich-text"] {
max-width: unset;
}
Let's connect and grow your Shopify business together!
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- Connect with me at: roy.solution.partner@gmail.com ( CRO | Site Speed Optimization | Custom Development )
You add a background for inner containers, not wrap containers. Please add this additional CSS code to your Customize CSS in Online Store > Themes > Custize > Theme settings to add background for those 2 sections.
#shopify-section-template--23085828964633__rich_text_PaAPCx,
#shopify-section-template--23085828964633__rich_text_BkFYHf { background-color: #1f1816; }
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This is an accepted solution.
The section seems to have the "max-width" property which is restricting it to span out completely.
Please use the below CSS (Change the CSS selector if you want to target those two specific sections):
[data-section-type="rich-text"] {
max-width: unset;
}
Let's connect and grow your Shopify business together!
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- Connect with me at: roy.solution.partner@gmail.com ( CRO | Site Speed Optimization | Custom Development )
This is great - thank you!
Hi @kirsten11123,
Please go to Actions > Edit code > Assets > theme.css file and paste this at the bottom of the file:
.rich-text.section {
max-width: 100%;
}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025