How to scale an entire web page with CSS?

Spread the love

Sometimes, we want to scale an entire web page with CSS.

In this article, we’ll look at how to scale an entire web page with CSS.

How to scale an entire web page with CSS?

To scale an entire web page with CSS, we set the zoom property.

For instance, we write

div.zoomed {
  zoom: 3;
  -moz-transform: scale(3);
  -moz-transform-origin: 0 0;
}

to set the zoom property to 3 to set the zoom level.

Conclusion

To scale an entire web page with CSS, we set the zoom property.

Leave a Reply

Your email address will not be published.