Hi how can I align these 2 images in the center of the page? And remove the black line under the first one (it’s a clickable image with the like that opens the magazine).
Topic summary
Goal: center two side-by-side images on a Debut theme page and remove the black underline/border beneath the first (clickable) image.
What happened:
- Store URL shared for review. Custom CSS was added in the theme to center the images and remove the underline/border. The requester confirmed this worked.
- Additional spacing between the two images was achieved by adding a left margin via CSS on the image elements.
- A separate suggestion introduced a mobile-specific CSS media query (@media max-width: 989px) to adjust image margins on smaller screens.
Latest update:
- The requester reported that the page on mobile (https://lenskiofficial.com/en/pages/magazine-vol-1) is “not responsive,” tagging the original helper for assistance. No fix has been provided yet.
Key terms:
- CSS (Cascading Style Sheets): styling rules added in theme.liquid and assets/theme.css to control layout and appearance.
- Responsive: layout adapts properly to mobile screen sizes.
Status:
- Desktop alignment, border removal, and spacing resolved.
- Mobile responsiveness issue remains open with no confirmed solution yet.
Hello,
Please provide store url
Thank you
Hello @David257
to center the image and remove border below image follow this steps :
- In your Shopify Admin go to online store > themes > actions > edit code
- Find layout > theme.liquid and paste this at the bottom of the file:
Hope this works best
Best wishes !
Thank you so much it works! How to add some space between the two images?
Please add this css with previous css
.template-page .page-width .grid__item img {
margin-left: 20px;
}
If this helpful then like and accept the solution
Hello @David257
It’s GemPages support team and glad to support you today.
I would like to give you a solution to support you.
-
Go to Online Store → Theme → Edit code.
-
Open your assets/theme.css theme file.
-
Add the code at the end of the file:
@media only screen and (max-width: 989px) {
.template-page .page-width .grid__item img{
margin-left: 40px !important;
}
}
Hope my solution can work and support you!
Kind & Best regards!
GemPages Support Team.
Hey last thing I just noticed, when I open this page on mobile https://lenskiofficial.com/en/pages/magazine-vol-1 It’s not responsive! @infoatcodelab7
Hey last thing I just noticed, when I open this page on mobile https://lenskiofficial.com/en/pages/magazine-vol-1 It’s not responsive! @infoatcodelab7
