I am using react.js to make a row of three pictures with a few words on the top and bottom of each image. For some reason when I change the color of my wording it does not change. Anyone knows why and how can I solve it? Thanks
HTML Code
<ImageContainer>
<titleofexprience>
stuff
</titleofexprience>
<img id="experienceImage" src={stufff} alt="nice" />
<discriptionofexprience>
</discriptionofexprience>
</ImageContainer>
export const titleofexprience = styled.nav`
position: absolute;
bottom: 0px;
color: #B0E0E6;
`
export const discriptionofexprience = styled.nav`
position: absolute;
bottom: 0px;
color: #B0E0E6; //I try to change the color of the wording but it is not chaning it
`
Why you use <nav>
element for this? You should use any inline element like <span>
or something.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.