Trying to "margin-top" for popup app, not sure why its not moving down?

Trying to "margin-top" for popup app, not sure why its not moving down?

Brian-A
Explorer
86 0 18

Trying to margin-top popup from app, not sure why its not moving?

 

While doing inspect element, I isolated the popup bar code but when adding "margin-top" 150px its not moving? Not sure why?

 

www.extremekool.com

Password01

222Capture.PNG

 

.modal-card[data-v-d3db2efb] {
    background-color: #fff;
    cursor: default;
    position: static; /* Ensure it respects the normal document flow */
    margin: 1em;
    margin-top: 150px !important; /* Force margin-top */
    box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;
    max-height: 90vh;
}
Replies 5 (5)

dev_solutions
Shopify Partner
24 3 4

Hello @Brian-A 

Can you please confirm where you are adding this css
In which file

Kind Regards 

- Need a Shopify Expert? Chat on WhatsApp

BSS-TekLabs
Shopify Partner
2401 695 828

BSSTekLabs_0-1735839070862.png

Do you want like  this?

 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Brian-A
Explorer
86 0 18

I was looking to put it below the header menu, not sure if it moves with the different screen sizes. I was at the library editing it, margin 150px moved it below.

When adding the code to base.css it looks like it isn't taking effect?

mt686
Shopify Partner
90 11 20

Hey!


So your code looks fine. It works when I use it in the inspector. I don't see your margin-top CSS in your site. Where are you adding it in the code? You can try adding it inline on the card HTMl like: <div data-v-d3db2efb="" class="modal-card" style="margin-top:150px"> . Or show me where you added the code in your theme.

If you want to do this without touching code, you can use EasyEdits . You can make the edits on a free trial and keep them. I'm the dev, fair disclaimer. 

Let me know how it goes!


Brian-A
Explorer
86 0 18

I added it to base.css, but when refreshing its not updating?