I would like to align the price and the title of my product on same line on the product pages like the website below. I want this to appear only in mobile view. I’m using elle theme. my website is www.alorena.com.
Topic summary
A user wants to align product titles and prices on the same horizontal line on mobile product pages for their Elle theme store (alorena.com), referencing a screenshot example.
Solution Provided:
A CSS code snippet was shared to add to the theme’s stylesheet (base.css/style.css/theme.css) using a media query for mobile screens (max-width: 767px). The code right-aligns the price and positions it using negative margin.
Current Issue:
The solution works but creates overlap when product titles are long. The user requests:
- Title text should wrap to the next line when lengthy
- Sale price should display before the compared-at price
The discussion remains open with these refinements needed. Screenshots demonstrate both the desired layout and the overlap problem.
Hi @Damonizy
Try this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 767px){
.productView-moreItem .productView-price .price {
justify-content: end;
margin-top: -35px;
}
}
- And Save.
- Result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!


