What are the command for changing font size in Mobile version and Pc version

What are the command for changing font size or margin in Mobile version and Pc version

I’m totally new to this so I know only this command font-size: 10px

What do I need to put for mobile version & Pc version or Ipad

Thank you

You could try something like this:

font-size: 1vw;

This will scale your text size depending on your viewport width size. Basically, the text size will scale up or down to always fit in the space you define.

Thank you

It doesn’t seem to be working..

Is there any other command for changing Margins separately for Pc and Mobile

Use could use @media, something like this:

.default-font-class {
  font-size: 18px;
}

@media screen and (max-width: 480px) {
  .default-font-class {
     font-size: 12px;
  }
}
1 Like