Skip to content
Discussion options

You must be logged in to vote

Check out #49. TL;DR: Use section::before pseudo-element.

![bg left](https://picsum.photos/720?image=29)

<style scoped>
section::before {
  content: 'Text Overlay Example';
  position: absolute;
  bottom: 30px;
  left: 30px;
  font-size: 20px;
  background: rgb(0 0 0 / 0.8);
  color: white;
  border-radius: 4px;
  padding: 4px 10px;
}
</style>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sbibauw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants