How can I align a carousel to the left?

Topic summary

A user is trying to left-align a carousel element to match their overall store layout but encounters an unadjustable border preventing proper alignment.

Solutions Provided:

Two community members offered CSS-based fixes:

  • Option 1: Add custom CSS to theme.scss.css targeting the specific carousel section ID to remove padding and margins
  • Option 2: Insert CSS code in theme.liquid before the </body> tag to adjust padding on carousel slide elements

Both solutions focus on overriding default padding/margin styles using !important declarations.

Status: The original poster confirmed one solution worked by thanking the contributors, suggesting the alignment issue was resolved.

Summarized with AI on November 23. AI used: claude-sonnet-4-5-20250929.

Hi everyone,

Hope someone can help me out. I want to align the carousel to the left so that it fits the overall layout. Somehow there is a border I can not adjust.

https://www.states-gallery.com/

Thank you in advance.

Regards, Haan

Hi @Haan

May I suggest to update code these steps:

  1. Go to Store Online-> theme → edit code
  2. Assets/theme.scss.css
  3. Add code below to bottom of file
#shopify-section-401aa483-238d-4fb8-b5e2-dd0335410dae .section-block .carousel-wrapper .carousel__slide-wrapper .carousel-wrap.position-relative .pl-md-5.position-relative {
	padding-left: 0!important;
}
#shopify-section-401aa483-238d-4fb8-b5e2-dd0335410dae .carousel-slider {
	margin: 0; 
}
1 Like

@Haan

Hello,

please use this given code above the in theme.liquid

layout >> theme.liquid

.carousel__slide .pl-md-5 { padding-left: 0!important; }

after that,

1 Like

Thank you!