Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

css on hover put overlay filter on bg image code example

Example 1: how to have a background image with a color overlay

/* Working method */
.tinted-image {
  background: 
    /* top, transparent red, faked with gradient */ 
    linear-gradient(
      rgba(255, 0, 0, 0.45), 
      rgba(255, 0, 0, 0.45)
    ),
    /* bottom, image */
    url(image.jpg);
}

Example 2: how to add a background overlay in css

.header {
  background: rgba(0, 0, 0, 0.5); /* Black color with 50% alpha/opacity */
}

Tags:

Css Example

Related

rails server is already running code example flutter input text check new lines code example moment create a utc date code example how to make a circle in java code example github how to roll back to previous commit code example roblox get player id from name code example how to name classes in react code example put text on R plot code example recursive file count linux code example get index in for loop typescript code example how to install node in terminal vsc code example how to make express router in node js code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy