Remya Venu
Remya Venu

Reputation: 3

Text-rendering in chrome

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

}

Upvotes: 0

Views: 227

Answers (2)

Tim M.
Tim M.

Reputation: 54378

* 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:

Upvotes: 1

Siddharth Gupta
Siddharth Gupta

Reputation: 897

.classname{
       text-rendering: optimizelegibility;
   }

Upvotes: 1

Related Questions