Skip to content
Discussion options

You must be logged in to vote

You could follow this guide: https://www.gatsbyjs.com/docs/how-to/images-and-media/using-gatsby-plugin-image#background-images

I mostly did it this way in the past (when CSS grid wasn't so widely supported):

  • wrap image and text div with a relative container
  • use absolute position to display text div over image + add styling to expand it to the size of the relative parent

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ronaldvdv
Comment options

Answer selected by ronaldvdv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants