I am doing a project on a country which consists of 3 html pages, and I have decided to put an image of the country's flag as the background image for each page.
I want to change the opacity of the background image, but each time i try and do it it changes the opacity of all the other content of the page - the text, headers, etc etc.
I have this line of code in my html:
<body background="flag.jpg">
and then in my css I have tried various things. I have tried giving that tag an 'id' like flag, and then tried:
#flag {
opacity: 0.2;
}
I have also tried just using 'background' instead of using 'id'.
I've been trying to figure it out for a while and can't get it, any advice will be appreciated! Thanks.