CSS Selector List Combinator (,)
- Forrige side Adjacent Sibling Combinator
- Næste side Subsequent Sibling Combinator
- Gå tilbage til niveauet over CSS kombinator reference håndbog
Definition and Usage
CSS Selector List Combinator (,
) is used to select all matching elements. Elements are separated by commas.
Example
Select and set the styles for all <h1>, <h2>, and <p> elements:
h1, h2, p { background-color: gold; border: 1px solid gray; {}
CSS Syntax
element1, element2, ... { css declarations; {}
Technical Details
Version: | CSS1 |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Support | Support | Support | Support | Support |
Relaterede sider
CSS Tutorial:CSS Grouping
- Forrige side Adjacent Sibling Combinator
- Næste side Subsequent Sibling Combinator
- Gå tilbage til niveauet over CSS kombinator reference håndbog