I am working on the Banner of the Dawn Theme for the home page and it’s giving me a big headache.
Font Size:
The title of the banner is set as big dimension, for desktop it works fine, but for the mobile is way too big and would end up overlapping the image, making it not neat and clear. How to change the font size for Mobile and make it smaller?
Text Padding:
Also for both mobile and desktop I would like to move the text closer to the edge of the image - right now the text is closer to the centre. From the code I can see that the banner text is set to a 5rem padding (50px).
Text Alignment:
Additionally, I’d like to have the first title in one line, right now it is divided in two rows. I guess for the mobile version, it would resolve with the font size change, but for the desktop I do not know.
The theme is not live, as I am currently working on it, but here below the images from the editor to show you the issues.
This code works good for the font size on mobile. But still the text on mobile is moved towards the center. How to align it more towards the edges of the image?