I want to align a segment in the right direction

Topic summary

Goal: Right‑align a savings message (“Du sparst…”) in the Shopify cart.

Context and steps:

  • Initial attempt using text‑alignment=“right” didn’t work. Helpers requested URL and a screenshot; an unpublished theme preview link was shared for the cart page.
  • Proposed fix (desktop only): add CSS in Online Store > Themes > Edit code > theme.scss.liquid or theme.css:
    • @media (min-width: 750px) { .cart__items + *, .cart__items + * + * { text-align: right !important; } .cart__items + * { margin-top: 20px; } }
    • Explanation: targets elements immediately following .cart__items, aligning their content to the right and adding top spacing.

Outcome:

  • After initially saying it didn’t work, the OP corrected themselves—solution works.

Latest update / open item:

  • OP requests an improvement: place the “Du sparst…” message on the right side where the subtotal is, and shared a new preview link. No solution for this repositioning has been provided yet.

Notes:

  • A screenshot was shared but not essential to the fix. The discussion is ongoing for the layout adjustment near the subtotal.
Summarized with AI on February 14. AI used: gpt-5.

Hello @NoelDS ,

We’d need to see the theme you’re currently working on.

Please follow this quick tutorial to learn how to safely and temporarily share an offline/unpublished theme URL.

Kind regards,
Diego