Hello, I would like my infos on the featured product to be centered to the photo and not glued to the top.
Topic summary
A user needed help vertically centering the product information section on their featured product display, as it was aligned to the top instead of being centered with the product image.
Solution Provided:
A CSS fix was shared to center the content using flexbox properties:
- Add
display: flex,align-items: center, andheight: 100%to the.featured-productclass - Can be implemented either through Shopify’s Custom CSS section in Theme Settings or by editing
base.cssdirectly in the theme code
Outcome:
The solution successfully resolved the alignment issue. The user confirmed it worked as intended.
1 Like
Hi @grangerly
Please, share your store URL. Thanks!
password: shayne
@grangerly
Use this css
How to Add This to Shopify Dawn Theme:
- Go to Shopify Admin → Online Store → Themes.
- Click “Customize” on your Dawn theme.
- In the theme editor, go to “Theme settings” (bottom left).
- Scroll down and click “Custom CSS”.
- Paste the above CSS code and save changes.
Alternative (Edit Theme CSS Directly):
- Go to “Online Store” → “Themes”.
- Click “Actions” → “Edit code”.
- Open base.css inside the assets folder.
- Paste the CSS at the bottom and Save.
.featured-product {
display: flex;
align-items: center; /* Vertically center */
justify-content: center; /* Horizontally center (if needed) */
height: 100%; /* Make sure the parent takes the full height */
}
It will solve your issue.
If solved marked the post as solved and like to solution ![]()
THank you
1 Like
It worked! Thank you so much.

