Hi there!
I am using Cargo to build my site and made only small adjustments to the CSS.
I implemented snap-scroll-type which finally starts working (only on the information page for now).
I am only referring to the information page where problems are visible best.
Issue:
There is something odd with the page width (and probaly height) of the page.. my head is puzzled with code.
I adjusted width/height values inside the css to make the snapping work.. there might be the issue.
- The snapping works fine, but I needed to reduce the width in the section part in order to have a proper right side padding inside the mobile page.
Its super weird and I don't know why it seems that the page is continuing to the right side... I also can not set right paddings for the page - or it wont show up.
This is just to illustrate the right side issue
The same section on the desktop version, where you see the adjustment made from the section width part.
See that the alignment of the text above should actually be with the menu below:
Trying to post the relevant code
I am not 100% sure if the "right side padding" issue comes from this part. Call me a newby in css.
Thanks for your help and any recommendations!
Kind Regards
Kerim
I am using Cargo to build my site and made only small adjustments to the CSS.
I implemented snap-scroll-type which finally starts working (only on the information page for now).
I am only referring to the information page where problems are visible best.
Information — 【nuur】
nuur is a visualisation studio specialized in the creative development of complex 3D systems operating at the nexus of art, architecture and product...
nuur.cargo.site
Issue:
There is something odd with the page width (and probaly height) of the page.. my head is puzzled with code.
I adjusted width/height values inside the css to make the snapping work.. there might be the issue.
- The snapping works fine, but I needed to reduce the width in the section part in order to have a proper right side padding inside the mobile page.
Its super weird and I don't know why it seems that the page is continuing to the right side... I also can not set right paddings for the page - or it wont show up.
This is just to illustrate the right side issue
The same section on the desktop version, where you see the adjustment made from the section width part.
See that the alignment of the text above should actually be with the menu below:
Trying to post the relevant code
CSS:
#toolset {
display: none;
}
body {
width: 100vw;
height: 100vh;
background-color: #fff;
max-width: 100%;
}
/* SETUP SCROLL SNAP */
.snap_container {
width: 100vw;
height: 85.2vh;
scroll-snap-type: y mandatory;
overflow-y: scroll;
overflow-x: hidden;
}
section {
display: flex;
justify-content: center;
align-items: flex-start;
width: 95vw;
height: 85.2vh;
scroll-snap-align: start;
}
I am not 100% sure if the "right side padding" issue comes from this part. Call me a newby in css.
Thanks for your help and any recommendations!
Kind Regards
Kerim