Solved

Why isn't my margin applying in Shopify theme code?

houssamalissa
Pathfinder
139 0 42

Hi guys,

Someone help me figure this out - I'm trying to create bottom margin / padding to this rich text section, but it doesn't seem to respond to my code in the theme file. Can anyone ID what I'm doing wrong?

 

#shopify-section-163214413166ab446d {
padding-top 0px !important;
padding-bottom 100px !important;
margin-top 0px !important;
margin-bottom 100px!important;

}

 

houssamalissa_0-1632145184065.png

 

Site URL: https://optyma.myshopify.com/
Password: sheert/
Theme: Motion
Accepted Solution (1)

Zworthkey
Shopify Partner
5581 642 1565

This is an accepted solution.

Paste this code on top of the theme.scss file.

@media only screen and (min-width: 992px) {
div#shopify-section-163214413166ab446d center {
    position: relative !important;
    top: -35px !important;
}
}

Thank you.

View solution in original post

Replies 3 (3)

Zworthkey
Shopify Partner
5581 642 1565

This is an accepted solution.

Paste this code on top of the theme.scss file.

@media only screen and (min-width: 992px) {
div#shopify-section-163214413166ab446d center {
    position: relative !important;
    top: -35px !important;
}
}

Thank you.

houssamalissa
Pathfinder
139 0 42

Thank you @Zworthkey !!

Site URL: https://optyma.myshopify.com/
Password: sheert/
Theme: Motion
Zworthkey
Shopify Partner
5581 642 1565

@houssamalissa 
Welcome.