0

How can we use text-rendering only for a particular class in css * { text-rendering:optimizelegibility;

}

2 Answers 2

1
.classname{ text-rendering: optimizelegibility; } 
Sign up to request clarification or add additional context in comments.

Comments

1

* is the universal selector. Unqualified, it matches all elements.

Use a class (or any other valid CSS) selector:

/* match a class name */ .my-class { text-rendering: optimizelegibility; } /* match an element ID */ #my-id { text-rendering: optimizelegibility; } /* match all P elements inside any element with a class name */ .my-class P { text-rendering: optimizelegibility; } 

See also:

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.