Computer Science, asked by IndianAstronaut, 1 month ago

difference between em and rem in css​

Attachments:

Answers

Answered by Schowdhury23
1

Explanation:

em gives the ability to control an area of a design. As in, scale the type in that specific area relatively. rem gives the ability to scale type across the entire page easily. Basically em is relative to the nearest parent in CSS, while is rem is relative to the parent of the page which is usually the html tag.

Answered by pakhareshravani
1

Answer:

  • While em is realtive to the front - size of it's direct or nearest parent. rem is only realtive to the html root front size
  • plz follow me

Similar questions