Different text justifications for different screen sizes?

If I want one of my fonts to be centered in the mobile view, but left-justified in the larger views, does anyone know a hacky-CSS way I can force that to happen?

Thanks in advance!

@WebRoyal, Or you can use Sparkle’s inbuilt font styles. Once you have it all setup for Desktop go ahead and activate the devices breakpoints. Then go back to the “Devices” tab and within the dropdown untick “Synchronise text attributes across devices”.

By doing this you can centre align your text content on your mobile device without affecting your font alignments on any of the other devices. So no hack needed! :slight_smile:

@greenskin Cool, that’s much more convenient, didn’t know this (and would love to have it known before). Thanks for that advice!

1 Like