How to centre align text on countdown timer

Topic summary

A Shopify store owner using the Bullet theme needs help center-aligning a countdown timer heading on mobile devices. The desktop view displays correctly, but mobile alignment is off.

Solution provided:

  • Add custom CSS code to the theme.liquid file before the </body> tag
  • The code targets .meta.cell-x h2 with text-align: center for screens under 767px width
  • Alternative: Add the CSS to a dedicated CSS file instead

Implementation steps:

  1. Navigate to Online Store → Theme → Edit code
  2. Open theme.liquid file
  3. Use Ctrl+F to search for </body> tag
  4. Paste the CSS code directly above it

Current status:
The center alignment now works, but a new issue emerged: uneven padding exists between the countdown timer and surrounding elements (more padding at bottom than top). The user has shared screenshots showing the padding discrepancy and is awaiting guidance on equalizing the spacing.

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

Hi everyone

I have a super small issue that is probably really easy to fix but it’s outside my scope of understanding. I’m using Bullet theme and on desktop view the countdown timer looks great but I’d love for the heading to be centred on mobile. Can anyone help with this quick fix please?

Hello @DaveyAlcatraz

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

@media screen and (max-width: 767px){ .meta x-cell h2 { text-align: center; } }

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Hi

Thanks for that, just to clarify which body should I past it before? I pasted it at the third ‘body’ and it didn’t work, the code was visible just above my announcement bar on mobile view… Please advise

search in file through the keyboard ctrl+f and search tag then above the paste it you can also add this in css file.

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

@media screen and (max-width: 767px){ x-cell.meta x-cell h2 { text-align: center; } }

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

1 Like

Hi, thanks for the response. Just one line above? I’ll try it now and see how I go..

Perfect, that looks great. The only other thing I noticed is it does have an uneven amount of padding on the top as the bottom. Is there any way the padding after the text below could be the same as the padding at the top?

can you share screenshot of that section?

Hi Niraj

here you go