Task 1:
Task 2:
Task 3:
Task 4:
Task 5:
Thanks
Task 1:
Task 2:
Task 3:
Task 4:
Task 5:
Thanks
Nice work @Sarai_Atoche_Pascual
There’s only one wrong selector. In task 3 you’re asked to make the first line of the first element red. You’re selector targets the (non-existing) text of the container itself and therefore no red text is visible.
How could you change the selector to achieve the goal?
Michael
Hi Miguel. Ohh right, I should read the homework better, it would be like that right?
.container>:first-child{
font-size:150%;
}
.container::first-line{
color:red;
}
Not quite. The first is fine as .container p:first-child
(The first <p>
in the container). The second selector should be for the first line of the element before. So .container p:first-child::first-line
would be ok.
ohhh I understand, I must be more specific