naocrrds

divider on top of your page (for code)

Feb 11th, 2025 (edited)
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.48 KB | None | 0 0
  1. body::before {
  2.   content: '';
  3.   display: block;
  4.   position: fixed;
  5.   top: 0;
  6.   left: 0;
  7.   width: 100vw;
  8.   height: 100vh;
  9.   z-index: -1;
  10.   background-image: url('https://i.postimg.cc/bNDH3NvQ/IMG_7418.png'); /* insert your image here */
  11.   background-size: 24rem auto, cover; /* Adjust the sizes by px, em, rem! */
  12.   background-position: center top, center top;
  13.   background-repeat: repeat-x, no-repeat; /* Repeat the divider horizontally only */
  14.   background-color: #FFFFFF;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment