# Adding CSS Gradient Background from gradient generator.

**URL:** <https://community.shopify.com/t/adding-css-gradient-background-from-gradient-generator/317346>\
**Category:** Store Design\
**Tags:** design, customizations, css, shopify-themes\
**Created:** [April 24, 2024, 2:02pm UTC](https://community.shopify.com/t/adding-css-gradient-background-from-gradient-generator/317346 "2024-04-24T14:02:31Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

Goal: apply a CSS gradient background to a specific Shopify section using code from a gradient generator.

What’s been tried:
- Black background works via CSS selectors:
  - .shopify-section { background-color: #000000; }
  - .section-template--22506935648603__custom_liquid_3YTXfC-padding { background-color: black; }
- Gradient attempt using background-image: linear-gradient(to right top, #000000, #080808, #0f0f0f, #151515, #191919, #1d1d1d, #202020, #242424, #272727, #2b2b2b, #2e2e2e, #323232); did not take effect.

Context/details:
- Wants the gradient shown in the linked generator preview.
- Images provided show where the code was placed and the desired gradient result.

Latest update:
- A responder requested the store URL to investigate further. No solution or specific fix shared yet.

Status:
- Unresolved/ongoing. Awaiting store URL and further diagnostics (e.g., correct selector targeting, CSS specificity, and placement) to implement the gradient on the intended section.

<div class="post-metadata">

**Author:** ![Reinhart](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/reinhart/32/248178_2.png) [@Reinhart](https://community.shopify.com/u/Reinhart)\
**Post date:** [April 24, 2024, 2:02pm UTC](https://community.shopify.com/t/adding-css-gradient-background-from-gradient-generator/317346/1 "2024-04-24T14:02:31Z")

</div>

I would like to add a CSS gradient background generated from a website like this

to a specific section of my page - [https://mycolor.space/gradient3?ori=to+right+top&hex=%23000000&hex2=%233B3B3B&hex3=%23323232&submit=submit](https://mycolor.space/gradient3?ori=to+right+top&hex=%23000000&hex2=%233B3B3B&hex3=%23323232&submit=submit)

Does anyone know how to do this?

I have a basic code which changes the section to black, however I would like it to be a gradient as shown from the link.

The black background code -

|   
**.shopify-section {**  
  
**background-color: #000000;**  
  
**}**  
**​.section-template–22506935648603\_\_custom\_liquid\_3YTXfC-padding {**  
  
**background-color: black;**  
  
**}**  
 |
| --- |

Where I put the code -

 ![RMTPerformance_1-1713967245307.png](https://canada1.discourse-cdn.com/shopifyforum/original/4X/8/0/b/80b05d67f6ff4798e5254122cad23e4ae2e9f87c.jpeg)

CSS Code for the Gradient ( I can’t make it work)  
background-image: linear-gradient(to right top, #000000, #080808, #0f0f0f, #151515, #191919, #1d1d1d, #202020, #242424, #272727, #2b2b2b, #2e2e2e, #323232);

The gradient I want example -

 ![RMTPerformance_2-1713967312363.png](https://canada1.discourse-cdn.com/shopifyforum/original/4X/f/1/6/f164b7447f75de02bc20b06634b443928b836202.jpeg)

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ShishirHelps](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/shishirhelps/32/99273_2.png) [@ShishirHelps](https://community.shopify.com/u/ShishirHelps)\
**Post date:** [April 24, 2024, 4:50pm UTC](https://community.shopify.com/t/adding-css-gradient-background-from-gradient-generator/317346/2 "2024-04-24T16:50:25Z")

</div>

Hey @Reinhart

Share your shopify store url please
