I would like to adjust the text align of the cart title (highligted in gray in the pic) to the right in the cart of dawn theme.
image:
password gahpro
Thanks
A user is trying to right-align the cart title text on their Hebrew-language Shopify store using the Dawn theme. The issue requires CSS modifications to accommodate right-to-left (RTL) language formatting.
Attempted Solutions:
align-items: baseline to cart-items .title-wrapper-with-link in base.css did not achieve right alignmentmargin-left: 80rem !important worked on desktop but broke the mobile cart layoutmargin-left: 0!important was proposed but reportedly still doesn’t align the title to the rightCurrent Status:
The discussion remains unresolved. The latest suggestion wraps the margin-left rule in a media query (@media screen and (min-width: 750px)) to apply the 80rem margin only on desktop screens (750px+), which should preserve mobile functionality while achieving desktop alignment.
The user has not yet confirmed whether this final solution works for both desktop and mobile views.
I would like to adjust the text align of the cart title (highligted in gray in the pic) to the right in the cart of dawn theme.
image:
password gahpro
Thanks
Hello @urbantis
Hello There,
cart-items .title-wrapper-with-link {
align-items: baseline;
}
Thank you for your reply, I added it but it’s not changing the alignment to the right. Any thoughts?
Hello @urbantis
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.
cart-items .title-wrapper-with-link {
margin-left: 80rem !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Thanks for answering, it works on desktop but it is destroying the cart in mobile, any thoughts?
Hello @urbantis
cart-items .title-wrapper-with-link {
align-items: baseline;
margin-left: 0!important;
}
Thanks for your reply, the title of the cart is not aligning to the right, am I missing something?
use this code
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.
@media screen and (min-width: 750px) {
cart-items .title-wrapper-with-link {
margin-left: 80rem !important;
}
}
Thanks