Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Adding a fixed banner over showcase image?

Started by Lewis 9 years ago · 1 replies · 924 views
9 years ago

This should help get you started in the right direction.

HTML

HTML
<section id="hero">
    <div class="row">
       ...
    </div>
    <div class='hero__overlay">Overlay content</div>
</section>

CSS

CSS
#hero { position: relative; }
.hero__overlay { position: absolute; top: 0; left: 10px; } /* Change top & left to whatever works best */

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 193 2 months ago
Themes & Styling · by Ian, 2 months ago
3 90 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 449 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 43 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 123 3 months ago