I've designed a website with three horizontal pages, each filling the entire screen. There's a fixed menu with links that scroll to specific pages when clicked. However, users can also scroll horizontally to navigate between screens.
If two pages are partially visible at the same time (e.g., half of page 2 and half of page 3), the anchor links to those pages won't work; only the link to page 1 is functional in this case. Once all pages are fully visible, the links function properly again.
While this setup works seamlessly in column mode, I suspect it's because anchor links point to the top of sections. In landscape mode, I may need to adjust the display orientation to accommodate side scrolling?
Below you'll find my complete CSS:
body {
font-size: 0px;
}
h1 {
font-family: 'Londrina Solid', cursive;
font-size: 120px;
text-align: center;
color: rgba(153, 0, 0, 1);
text-shadow: -1px -1px #A99E9E;
}
p {
font-family: 'Titillium Web', sans-serif;
font-size: 25px;
color: rgba(255, 255, 255, 1);
background-color: rgba(153, 0, 0, 0.8);
text-shadow: 4px 4px 10px #000000;
}
.pad {
margin-top: 33vh;
display: flex;
flex-direction: column;
}
.line1 {
text-align: center;
margin-right: 32vw;
margin-left: 21vw;
margin-top: 2vh;
padding-top: 1vh;
padding-bottom: 2vh;
}
... (CSS code continues)