Search
 
SCRIPT & CODE EXAMPLE
 

CSS

black background overlay filter | black overlay for image css

Exp:
<header>
  <img src="https://picsum.photos/id/1036/4608/3072" alt="Placeholder-Image">
  <section>
    <h1>Heading</h1>
    <h2>Just another tech blog.</h2>
    <button>Read more.</button>
  </section>
</header>

Add This Css:
header img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: brightness(.4);
}


section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: 'Roboto', sans-serif;
}
Comment

PREVIOUS NEXT
Code Example
Css :: css animation-name 
Css :: background image animation css codepen 
Css :: margin shorthand css 
Css :: blockquote quotation marks css 
Css :: responsive css template 
Css :: Functions in Golang 
Css :: input disabled css 
Css :: git apagar branch remoto 
Css :: crop image in img 
Css :: css border sides 
Css :: how to render css in flask 
Css :: include sass in html 
Css :: box shadow css transition 
Css :: css pseudo-elements 
Css :: css tbody space tr 
Css :: divi submenu collapse by default 
Css :: kadence sub menu full hover 
Css :: css media query for mobile and hide a row wordpress 
Css :: elementsone after other css 
Css :: como tirar o x do search input 
Css :: css template columns and rows 
Css :: css alfred 
Css :: how to make hover effect none in css 
Css :: nuxt JisonLexerError: Lexical error on line 1: Unrecognized text. 
Css :: sass rainbow color background 
Css :: step progress bar css 
Css :: farther of genetics 
Css :: beautiful Cyrillic fonts 
Css :: forEach In a forEach method, we pass each food type within that iteration into the callback. A for loop needs you to access the array using a temporary i variable. 
Css :: mouse cursor smooth 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =