Archived topic
Mobile Header Title Issue
5 replies · Started by Moises on September 1, 2020
Hi there,
I seem to be having an issue that i have no idea how to fix!
I've set up the header title for the homepage and all works well on desktop. However, on mobile the 'Performance' text seems to be cutting off.
I've tried editing the @media query via css but it doesn't seem to be working. I'm currently running Elementor on it too.
Any help would be greatly appreciated.
Hi there,
Try this CSS:
@media (max-width: 768px) {
h1.hero-title {
letter-spacing: 2px;
}
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
Hi Leo,
Added that to the 'Additional CSS' section - but no luck unfortunately...
Hi there,
you have an extra } in your CSS which is breaking the CSS see here:
.hero-title {
font-size: 40px;
letter-spacing: 12px;
font-weight: 500;
}
} /* remove this bracket */
@media (max-width: 768px) {
h1.hero-title {
letter-spacing: 2px;
}
}
I have commented the bracket you need to remove.
D'oh! That's fixed it.
Thanks so much guys.
Glad we could be of help