Hello, so for some reason the image with text block of the contact us page appears to be in a greater width than then title and contact form. I want it to be aligned in the same dimensions as the title and contact from, something like in the image below:
https://03df82.myshopify.com/pages/contact
Topic summary
-
Problem: On a Shopify contact page, the “Image with text” section renders wider than the page title and contact form. The goal is to align it to the same width as the title/form (page link and screenshot provided).
-
Proposed fix (desktop ≥ 749px): Add CSS in the theme asset file (base.css/style.css/theme.css):
- Target the specific contact page section ID to set .page-width to max-width: 100% and remove padding.
- Adjust .image-with-text__content padding to 6rem 5rem.
- Set the image’s object-fit to contain.
- Limit the image-with-text container to 72.6rem width and center it (margin: auto).
-
Outcome: A screenshot shows the image-with-text block aligning with the title/contact form after applying the CSS.
-
Follow-up: The OP asked if the same/similar CSS can be added via the section’s “Custom CSS” field (shown in a screenshot) instead of editing base.css. No confirmation was provided.
-
Status: Partially resolved. A working CSS solution was shared; the question about placing it in section-level Custom CSS remains open.
Hi @Andy106
Check 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 (min-width: 749px){
div#shopify-section-template--20329280143699__ebf8af0e-490b-4f33-9e70-eb3b8c61107f .page-width {
max-width: 100% !important;
padding: 0px !important;
}
.image-with-text__content {
padding: 6rem 5rem;
}
div#shopify-section-template--20329280143699__ebf8af0e-490b-4f33-9e70-eb3b8c61107f .media>img {
object-fit: contain !important;
}
.image-with-text.image-with-text--no-overlap.isolate.collapse-corners.scroll-trigger.animate--slide-in {
width: 72.6rem;
margin: auto;
}
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!


