Set background to black and opacity to 0.5.Set z-index on that div larger than all content material.Rest, you possibly can set any worth of your selection, however values above 100% would make the picture brighter. Remember, the worth 0 makes the picture black, 100% is for unique picture and default. To set picture brightness in CSS, use filter brightness(%). How do I alter the brightness of a picture in CSS? Use RGBA colours to make your background picture darker. To sum it up : Use opacity and filter property to darken a picture and create cool hover impact with it.
0 Comments
Leave a Reply. |