I am new to css and doing the best i can to learn it. I am building a test website where i want a gray overlay Menu over my background image. More like a see through overlay. I looked online and couldnt find what I needed.
below is a picture of what I need
as you can see in the picture above, there is a background image of pink roses.
then there is a gray overlay with a menu. In the gray area, you can see the background image a little. I would like to mimic the same as the picture above in css or html. can someone please give me sample code on how to accomplish my request. if you know any tutorial that can guide me accomplish whats on the picture, please send and i will appreciate. thanks in advance
2
Answers
Like above comment says you need to post some code, to help others understand. But in general if you want to overlay the image to make it darker you can use:
It will darken your image. You can adjust opacity (0.6) to make it darker or lighter, also you can change the overlay color. Put your image path inside
url
.Or use what above comment says if you have a separate container that overlays background.
It all depends on what you want. Another example:
Here is a full example. It’s pretty simple code, so hopefully its easy to understand, but if not, leave a comment with your questions.