Copy link to clipboard
Copied
Hi,
In Chrome, <h1> text is in the center vertically and horizontally on Mobile and Tablet.
In Edge, <h1> text is aligned left on Mobile and Tablet.
Is there any way to fix it?
(All 6 photos came from the screenshots on my laptop.
Everything is OK on my iPhone XS Max (Chrome and Safari).)
Link
Hosun Kang
This means that you are centring the items within the hero-box using grid. This works fine when viewing the page in browsers that understand grid, see https://caniuse.com/#feat=css-grid
Copy link to clipboard
Copied
This means that you are centring the items within the hero-box using grid. This works fine when viewing the page in browsers that understand grid, see https://caniuse.com/#feat=css-grid
Copy link to clipboard
Copied
What do you want, the h1 centering?
add this rule to H1 in you CSS:
margin: 0 auto;
Copy link to clipboard
Copied
Thank you very much.
That is exactly what I've been looking for.
Thanks again.
Hosun Kang
Find more inspiration, events, and resources on the new Adobe Community
Explore Now