.mor { font-size: 2em; } <p> Л <span class="mor">а</span> в <span class="mor">а</span> н <span class="mor">д</span> а </p> I understand this can be done through pseudo-classes. How?
а в It seems like Adobe was planning to push the selector Source: https://ru.stackoverflow.com/questions/590217/1 answer
:nth-letter() , but something is not any news, so (for now?) Browsers do not know this. You can use the nthEverything library - it will add support for the necessary selectors, automatically parsing the text into letters ( use case ), but, of course, preparing the text on the server side will be much more productive.
#letters:nth-letter(even){ font-size: 120%; }
<p id="letters">Чётные буквы больше на 20%</p> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.rawgit.com/FWeinb/nthEverything/master/jquery.nthEverything.min.js"></script>
All Articles