In CSS, how can I select all E.g. I
The following CSS3 selector will do the job: The The elements where their id
begins with section_
and ends with _dummy
?
tr[id^="section_"][id$="_dummy"] {
height: 200px;
}
^
denotes what the id
should begin with.$
denotes what the id
should end with.
id
itself can be replaced with another attribute, such as href
, when applied to (for example) <a>
:a[href^="http://www.example.com/product_"][href$="/about"] {
background-color: red;
}