S
S
Sergey questions2018-02-24 20:32:01
css
Sergey questions, 2018-02-24 20:32:01

How to select all elements in css at the beginning of the class?

Hello. Somehow I did it before, now for the life of me - I can’t remember.
For example, there are 10 classes on the page sc_block21,sc_block25,sc_block38, etc.
How to set the style in css for all blocks that start with .sc_block * ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gortyser, 2018-02-24
@smartycms

https://developer.mozilla.org/en/docs/Web/CSS/Attr...
In your case [class^=sc_block]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question