I've been trying to set an opacity for my background image but the only thing opacity changes is basically everything beside the image. How do I change the attributes of my body using styled components?
import styled, { createGlobalStyle } from "styled-components";
import Clouds from "./Pics/Clouds.png";
const GlobalStyle = createGlobalStyle`
body {
background-image: url(${Clouds});
}
`;
const StyledText = styled.div`
text-align: justify;
position: fixed;
top: 50%;
left: 50%;
margin-top: -50px;
margin-left: -100px;
font-size: 35px;
font-family: "Comic Sans MS";
`;
const Weather = (props) => {
return (
<React.Fragment>
{" "}
<StyledText>
Today : {props.main}
<br />
City : {props.city}
<br />
Celcius: {props.temp}
<br />
</StyledText>
<GlobalStyle />
</React.Fragment>
);
};
export default Weather;
Thanks for any kind of help!