About 66 results
Open links in new tab
  1. css - Target elements with multiple classes, within one rule

    I have some HTML that would have elements with multiple classes, and I need to assign them within one rule, so that the same classes could be different within different containers.

  2. CSS selector for multiple sub-elements - Stack Overflow

    Unfortunately, you'll need to target each heading separately, or just assign a class to it. .live_grid h1, .live_grid h2, .live_grid h3, .live_grid h4, .live_grid h5, .live_grid h6 { } I would just assign a …

  3. CSS Selectors – Cheat Sheet for Class, Name, Child Selector List

    Sep 29, 2022 · For example, here is how you would target multiple elements such as div s, p s, and span s all at once and apply the same styles to each of them: div, p, span { property: value; }

  4. CSS Selectors - W3Schools

    CSS Selectors CSS selectors are used to "find" (or select) the HTML elements you want to style. We can divide CSS selectors into five categories: Simple selectors (select elements based on …

  5. Targeting multiple elements of a class in CSS - Stack Overflow

    I am attempting to select multiple elements of a table with a specific class. What is the correct way to do it as I do not believe I've done it right in the example below? I want both the th's and td's …

  6. CSS selectors and combinators - CSS: Cascading Style Sheets | MDN

    Apr 10, 2025 · Using various selectors and combinators, you can precisely select and style the desired elements based on their type, attributes, state, or relationship to other elements.

  7. Grouping Multiple CSS Selectors in One Style Property

    Jul 24, 2024 · Learn how grouping CSS selectors simplifies your stylesheets and allows you to style multiple elements without needing additional attributes.

  8. The Simple Guide to Complex CSS Selectors - Maker's Aid

    Apr 14, 2022 · To select one or multiple DOM elements based on the presence and the exact value of an HTML attribute, use the [name="value"] selector, where name is the name of the …

  9. CSS Selectors - flaviocopes.com

    Apr 24, 2019 · We’ve seen how to target an element in the page by using a tag name, a class or an id. You can create a more specific selector by combining multiple items to follow the …

  10. How to Use CSS Combinators to Select and Style Elements

    Sep 21, 2022 · Combinators allow you to combine multiple selectors to target specific elements in the DOM. In this article, I'll explain how four of these combinators with examples.

Refresh