My application has multiple pages and each page has a top class .page-container
. There is dispute on setting relative positioning for page container. My understanding is all the content is relative to the page container. Any thoughts?
The example is as below:
.page-container {
position: relative;
background-color: #f3f3f3;
padding: 10px;
}
.page-content {
background-color: pink;
}
<body>
<main class='page-container'>
<div class='page-content'>content for each page </div>
</main>
</body>