NO BUG: Can't align text using CSS classes on mobile, only when editing directly

Bricks Version: 1.6.1
Browser: Chrome 108
OS: Windows

I’m pretty sure I’m doing something wrong, but I can’t figure out why I can’t align this text using the CSS class.

chrome_SvX21XJS5Z

  • There’s no CSS set in the text content itself, just raw text.
  • On the base breakpoints there is no alignment set
  • On the base breakpoint text alignment using the CSS class does work
  • There’s no alignment set on any of the divs/blocks above

Hi Dennis,
Thanks so much for your report!

Can you provide me with a live link? I can probably tell pretty quickly from the styles why it doesn’t work.

Best regards,
timmse

Yes, of course. I’ve sent you a URL in a direct message.

Hey Dennis,
You’ve applied text-align: center to the ID on the mobile landscape breakpoint. Since the styles cascade down to mobile portrait and the ID always has more impact and weight as the class, it overrides your class setting:

CleanShot 2023-01-16 at 21.30.48@2x

Best,
timmse

1 Like

Thanks, that fixed it!