A
A
Alexander Vladimirovich2015-09-23 16:14:55
css
Alexander Vladimirovich, 2015-09-23 16:14:55

How to change the font size of a fixed width website?

There is a page

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  background-color: #fff;
}
#wrap {
width: 980px;
}

<meta name="viewport" content="width=980">
Thus, on all devices, the page fits in the width of the screen.
How to make font size bigger on small screens like this
/* Small devices (tablets, 768px and up) */
@media (max-width: 768px) {
    font-size: 16px;
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Gregory, 2015-09-23
@grigruss

https://learn.javascript.ru/css-units
PS: this is probably

0
0leg5ergeev, 2015-09-23
@0leg5ergeev

/* Small devices (tablets, 768px and up) */
@media (max-width: 768px) {
  .class{  font-size: 16px;}
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question