Can I write some style css code for every • code I use in my page, for example font-size: 16px;? Thanks.
Can I write some style css code for every • code I use in
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Others have answered the main question; you cannot specify a CSS Rule based on text content (just on HTML elements, classes, and ids).
What you could do is use Javascript, or server-side rendering to do a
.Replace()to wrap the character with the necessary HTML tags (replace just the character with a wrapped version of the character).Here’s a quick proof-of-concept; it could easily avoid the jQuery (it’s a crutch of mine), and you might play around a bit with how the character is encoded in the Javascript (I had to copy/paste it in to work).
The key portion is: