Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Modular Page Background Image Display

Started by TomW 1 month ago · 2 replies · 341 views
1 month ago

Hello,

I'm using the Hadron v3 theme, which is based on the Quark2 theme.

I've created a modular page and am using the “Hero” class to embed an image in the background.

However, the image isn't displaying correctly; even with the “hero-fullscreen” class, I can only see part of the image.

Screenshot 2026-10-27 161145.jpg

How can I make the image align flush at the bottom and fade out at the top?

Here is the original image

Screenshot 2026-10-27 161221.jpg

last edited 10/27/26 by TomW
1 month ago

i would absolute position a div at the bottom over the top of the image and have a semi transparent gradient on that.

3 weeks ago

My main problem is that the image wasn't aligned flush with the bottom.

I've now solved that by doing this

body.hero-bottom-image #hero.section.modular-hero.hero {

background-position: center bottom !important;

background-position-y: bottom !important;

}

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by MarkP, 2 weeks ago
3 191 2 weeks ago
Themes & Styling · by TomW, 2 weeks ago
0 110 2 weeks ago
Themes & Styling · by themetman, 3 weeks ago
1 205 3 weeks ago
Themes & Styling · by AH, 1 month ago
1 323 3 weeks ago
Themes & Styling · by Bruno, 4 years ago
6 1522 3 weeks ago