Basic style measure for a webpage

PHOTO EMBED

Sat Dec 17 2022 00:11:42 GMT+0000 (Coordinated Universal Time)

Saved by @jen_magpantay #javascript #react.js

<div class="page__wrapper">
	<header></header>
  	<main></main>
  	<footer></footer>
</div>

// css style
.page__wrapper {
	width: 100%;
	max-width: 1064px;
	margin: 0 auto;
	padding: 24px 20px;
}
content_copyCOPY

In this case, the page wrapper will not take a full width on screens greater than 1140px, keeping an automatic space on both sides. And if is resized, it will be a perfect fit on small screens, with no need to add breakpoints or media queries to resize the div.