Advertisement
go6odn28

daker background

Oct 19th, 2024
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.48 KB | None | 0 0
  1. .header-section {
  2.     position: relative;
  3.     display: block;
  4.     background: url('images/poster.jpg') center no-repeat;
  5.     background-size: cover;
  6.     overflow: hidden;
  7.     height: auto;
  8. }
  9.  
  10. .header-section::before {
  11.     content: '';
  12.     position: absolute;
  13.     top: 0;
  14.     left: 0;
  15.     width: 100%;
  16.     height: 100%;
  17.     background-color: rgba(0, 0, 0, 0.4);
  18. }
  19.  
  20. .header-section nav,
  21. .header-section h1,
  22. .header-section p {
  23.     position: relative;
  24.     z-index: 2;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement