How to add a selector to another sector as a class in css style element

hello freind i want to ass a selector to another selector in style element in css
can u help me how can i do that?
thanks

To add a css selector to another you can separate them with commas and use.
For example:

p, div, .text{
  font-size: 2.5rem;
  color: white;
  ......
}

Here the p, div and the .text css selectors are used together at one time separated with commas( , ).

thanks dear freind.i have solved my problem.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.