Skip to content

Display content on the space assigned to a lateral background image #49

Answered by yhatt
jtppragg asked this question in Q&A
Discussion options

You must be logged in to vote

Any contents including header and footer cannot make a influence into the area for split backgrounds, because ![bg right]() is for making a reserved space for the background.

Using section::before

A only way to place a custom text over the splitted background is using section::before pseudo-selector and content declaration.

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

<style>
section::before {
  content: 'Text over the splitted background!';

  position: absolute;
  right: 30px;
  top: 30px;
  font-size: 60px;
}
</style>

section::before and section::after pseudo-elements are designed for the content over the slide and section::after is reserved for the pagination by paginate directi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jtppragg
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