Skip to content
CoursesWeb Forum
Sections

selectors

1 thread tagged with this topic

Threads tagged selectors

  1. ✓

    Why is my CSS rule ignored? How does specificity decide which rule wins?

    When two rules set the same property on one element, the browser scores each selector and the higher score wins. An id counts most, then classes, attributes...

    CSS Styling and SelectorsTeodora VanceStaff answer
    0replies
CoursesWeb Forum. Questions and answers on learning web development: HTML, CSS, JavaScript, PHP, MySQL, Node.js and AI coding help.