I’m trying to add a background color into a section but when I write nothing happens
I’m using id=“my-work” in the section and in the css part I wrote,
#my-work {
background-color: orange;
}
Is there something i’m doing wrong?
I’m trying to add a background color into a section but when I write nothing happens
I’m using id=“my-work” in the section and in the css part I wrote,
#my-work {
background-color: orange;
}
Is there something i’m doing wrong?
I would be good if you post the full code and the link to the challenge(if it is one.)
All I can think from what you’ve posted is that your section doesn’t have a height?
For more help add your code to a pen, save it and post the link here.
Yeah, the css looks fine.
It should be a problem with the html or as mike pointed out, the section doesn’t have a height.
If there is no height, you can set the height using css.
There may not be any height because there is no content inside the section
.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.