A user needs help centering an image in a simple image section on their Shopify store using the Trademark theme. The image defaults to left-alignment.
Initial Solution Attempt:
Another user provides CSS code targeting a specific section ID (#shopify-section-...) to apply flexbox centering properties
This code should be added to the bottom of the theme.css file in the Assets folder
Resolution:
The first CSS solution doesn’t work because the section ID changed
Updated CSS code targets the element differently using #main .shopify-section:nth-child(14) instead of the specific section ID
This successfully centers the image
Follow-up:
The original poster asks how to find section IDs/codes to apply similar fixes to other sections. The helper clarifies they used a child selector (14th child of main) rather than a specific section ID, referencing an uploaded image for explanation.
Note: Some text in the conversation appears corrupted or reversed, but the core technical solution and outcome are clear.
Summarized with AI on November 25.
AI used: claude-sonnet-4-5-20250929.
I have a simple image section without any text. The image is automatically left-aligned and I would like for it to be centered. Would anyone know how to accomplish this?