Answer the question
In order to leave comments, you need to log in
I'm using the sass preprocessor. How to write in Cyrillic in the before pseudo-class of the content property?
There is a css block:
.onas .colorblock2:after {
content: "О НАС";
color: #3b794f;
font-size: 24px;
background-color: white;
left: 45%;
top: -26px;
position: absolute;
padding: 5px 10px;
}
Answer the question
In order to leave comments, you need to log in
Well, if you really want to use content, then you can
content: attr(data-title);
And in the html itself at the But element,
you are clearly trying to do something very strange. The only use case I can think of is disabling text selection, but this is solved with user-select: none;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question