I want to make a CSS selector for a class that starts with a space, but I don't know how to do it. For example: <table class=" example">…</table>.
<table class=" example">…</table>
Any leading or trailing spaces in the value of a class attribute do not make sense for targeting purposes. It: class=" example"is equivalent to this: class="example".
class=" example"
class="example"
There is no need for a special selector that affects the space.
From the HTML 5 spec:
2.4.7 Space sharing tokensA string containing a set of space-separated tokens can have either run characters.
2.4.7 Space sharing tokens
A string containing a set of space-separated tokens can have either run characters.
, , .
3.2.5.7 class, , , , , .
3.2.5.7 class
class
, , , , , .
CSS - ; .
.example.
.example
. class=" example" HTML class="example", class="example " class=" example " .example.
class="example "
class=" example "
, , .example.
, , : [class~="example"] , [class="example"] class="example". (, , - , , , [class^=" example"], [class=" example"], , , , .)
[class~="example"]
[class="example"]
[class^=" example"]
[class=" example"]
Source: https://habr.com/ru/post/1661318/More articles:Программно установить интервал в Stackview - iosHow to split all commits by file? - gitgit merge manipulates history - gitTensor Flow: Weight Interpretation for Weighted Cross-Entropy - tensorflowSelenium - ElementNotVisibleException - pythonComparing int with NULL in C - is this manual wrong? - cWhat is the default location for included files when creating docker image? - includeEntity Framework - First Code Approach - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1661322/will-git-garbage-collect-commit-in-submodule-referred-to-by-a-top-level-repository&usg=ALkJrhg6Ly5xYn3tX2K1GngAMKysqx9ifQThe scope of range variables in SQL Server - variablesAll Articles