How can I move a badge to the top left corner in Dawn 2.0?

Solved

How can I move a badge to the top left corner in Dawn 2.0?

LucaSt
Visitor
1 0 0

Hey Guys,

I got two badges on my product cards.

Both are in the bottom left of the card, now I want one of them to be in the top left corner.

 

I tried the css class "badge--top-left".

Also I tried the solution on https://community.shopify.com/c/shopify-design/move-the-sale-badge-to-top-left-corner-and-change-col... 

- so I made a class to overwrite it

.badge--top-left{ top: 1rem; bottom: initial !important; }

both didn't work for me. 

Accepted Solution (1)

omarhussain
Shopify Partner
32 5 7

This is an accepted solution.

Hi LucaSt use this code

put this code at the end of base.css

.card__badge {
    align-self: flex-end;
    justify-self: flex-start;
    top: 0px;
    position: absolute;
    left: 0;
    grid-row: auto;
}

View solution in original post

Replies 3 (3)

Columbus_Themes
Shopify Partner
126 9 17

A link to your website and some screenshots would be helpful to get a better understanding to your issue.

If you find my reply helpful, please hit Like and Mark as Solution.

Happy coding!

GemPages
Shopify Partner
5625 1262 1280

Hello @LucaSt 

 

Could you please share your store url ( with pass if your store password is enabled ) then I can see and suggest something for you?

 

Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center

omarhussain
Shopify Partner
32 5 7

This is an accepted solution.

Hi LucaSt use this code

put this code at the end of base.css

.card__badge {
    align-self: flex-end;
    justify-self: flex-start;
    top: 0px;
    position: absolute;
    left: 0;
    grid-row: auto;
}