Este es mi codigo
Tarea con la que necesito ayuda
No logro que mi CSS me haga caso en los ultimos dos puntos de la tarea. Y segun revise varias veces no tengo ningun error de sintaxys.
Este es mi codigo
Tarea con la que necesito ayuda
No logro que mi CSS me haga caso en los ultimos dos puntos de la tarea. Y segun revise varias veces no tengo ningun error de sintaxys.
Hi @Mati and welcome to the community
Your syntax is correct, but you used the wrong selectors.
~=
only matches a string when it has a space before or after. There’s another selector on https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors which matches whatever string you use.
|=
only matches when the string is followed by a hyphen (-
). There’s another selector that matches the string at the start of the attribute (whatever follows it).
I hope that helps,
Michael
Hello Michael!
Thank you for your response, it has been very helpful.
Great improvements. These were exactly the selectors I was thinking about.