This members-only tutorial provides the steps to set up a responsive hero section in Oxygen with text overlaid on top.

We shall use an <img> element vs setting an image as cover background to ensure proportional scaling of the image.

At a smaller breakpoint, the text will be set to appear below the image.

Step 1

Edit your Page/Template in Oxygen in which you would like to add the responsive image with text overlay.

Step 2

Add a Section.

Text Color: #ffffff

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($27/month or $169 one-time).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE

Comments

For adding code blocks wrap the code in three backticks. Markdown should work.
Provide a URL of your site/webpage if something is not working.
  • hi sridhar…
    I just added this to a page and thought I followed everything – went over it 3 x – but something weird is going on – there’s a transparent grey going beyond the image into the page on desktop and iphone – inspector is showing that its the background in the :before section – Also, when you hover over it, the type and the fill disappears. and I can’t get the headline to center… can you guide me? website is: https://jonbates.com

    Thank you!

  • magnifiercross
    >
    linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
    %d bloggers like this: