I think my css is not working for the “forecast” class, plz have a look into that so that i can find what is wrong,Thank you.
Since I don’t know how this should look in the end, can you explain a bit more what your problem is exactly?
Thanks!
1 Like
you can share link to the task or question even if it not from mdn material we would do our best to help with that
2 Likes
Sorry guys, @mikoMK , @justsomeone, I was so dumb, I forgot to link the css page to html
2 Likes
Generally,
p,
ul{
} means either p element or the ul but not both? Is this right?
Yes, if you put commas between selectors all rules apply for the first selector on its own and for the second selector on its own. It’s just a shorthand so you don’t have to write the same rules twice.
p, ul {
padding: 5px;
color: rebeccapurple;
}
is the same as
p {
padding: 5px;
color: rebeccapurple;
}
ul {
padding: 5px;
color: rebeccapurple;
}
2 Likes
noted
1 Like