Dawn Theme - Mobile - Hero Banner image & text alignment

Topic summary

A user is experiencing layout issues with the Dawn theme’s hero banner on mobile devices. The main problems are:

Image cropping: The hero banner image crops the top half on mobile screens, unlike the desktop view where it displays properly.

Text sizing and alignment: The hero text appears too large on mobile and doesn’t align to the left as it does on desktop.

A community member provided CSS code to add to the theme’s base.css file, targeting the hero container with absolute positioning and specific margins. However, the initial solution caused the banner image to crop again.

Current status: The discussion remains ongoing as the proposed CSS fixes haven’t fully resolved both issues. The user also requested guidance on reducing the mobile font size by approximately 50%. The helper is iterating on CSS solutions, with the most recent code attempting to adjust the container positioning using !important declarations.

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

Hello I’m trying to make the image of the hero banner align on a mobile screen. It crops

the top half off at the moment. See image below.

also, the text is way to big and doesn’t have the same alignment as it looks on a desktop. See desktop view below.

@Tiff0011
Hello,

section#hero .container .d-flex {
  justify-content: center !important;
}
#hero .container {
  text-align: center;
}

Add this CSS at the bottom of Online Store->Theme->Edit code->Assets->style.scss.liquid

@oscprofessional @Sorry this doesn’t work. I want the mobile hero text to be to the left like it shows on the desktop and I want it to me significantly smaller too, similar ratio to the desktop view

@Tiff0011

please share store url and password

My website page is https://tiffenyofficial.com/

Password is ‘pix’

@shubhamSharma

step 01:

  1. Go to your Store > Theme > click to edit code.
  2. find this file "base.css " and open.

step 02:

  1. Paste the code at the end of the file.
@media only screen and (max-width:768px){
	
.fixed-top {
    position: initial !important;
}

#hero .container {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
}
}

Thank you for your response

When I post the above code this is what it does:

replace this code

#hero .container {
    position: absolute !important;
    bottom: 1.5rem;
    left: 1.5rem;
}

@shubhamSharma

It has cropped the hero banner image again. Also, how do i make the font smaller on the mobile device? about 50% smaller

@Tiff0011

step 01:

  1. Go to your Store > Theme > click to edit code.
  2. find this file "theme.liquid " and open.

step 02:

  1. Paste the code at the end of the file.

this idea helps you