I am trying to make a single page design. I want each section to be a page. Each page has its own parallax images so I want each section to be full height of the view port. So basically each section acts as a “page”. I want each section’s content to be vertically centered in the section. I have the following classes in my content CSS:
.x-section {
height: 100vh;
position: relative;
}
.x-container {
position: absolute !important;
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
}
The problem is that when I add those classes, the section disappears completely. Are there any other ways to achieve this?