Which CSS rule has priority in this case?

Asked

Viewed 56 times

-1

In the code below, what will be the color of the paragraph?

p { color:red; }
p { color:blue; }

red or blue?

  • 3

    cannot put together a small test to prove which color will be?

  • Why -1? I didn’t think it was fair... There are several questions about CSS rules but I haven’t seen one about repeating the same rule.

  • well, it wasn’t me who gave the downvote, but it was probably as I put in the comment, lacked only "a hangover" to forehead and see the result, even if it is an interesting doubt

1 answer

5


Browser other questions tagged

You are not signed in. Login or sign up in order to post.