Tips on eliminating the excess whitespace remaining at the bottom of the webpage when using JavaScript parallax scrolling

I'm currently working on a project that involves using parallax effects for images and divs. However, I've noticed that there is some space left at the end of the parallax effect for unknown reasons. Could someone please assist me in removing this space at the bottom of the page? You can view the webpage here and see a screenshot here.

Answer №1

Is the issue you're mentioning related to the extra space on the x-axis (specifically on the right side)?

If you adjust width: 100vw to width: 100% on the body element, it should solve the problem.

Alternatively, you can also add max-width: 100% as a solution. However, in this particular case, using width: 100% should suffice since the body element will never be contained within a smaller parent element.


The issue arises due to the v-scrollbar when attempting to use 100vw. The calculation for width[%] considers the scrollbar, while width[vm] does not.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Element within container div being forced out of view (off-screen)

I'm in the process of developing a responsive website and my goal is to keep all my divs centered at all times. However, I've encountered an issue where using the flex attribute in my container causes the bootstrap cards to go offscreen. Can any ...

Extract data from JSON using jQuery

Is there a way to extract data from JSON files using AJAX? I am currently fetching JSON data with AJAX and then converting the retrieved data into HTML. The values in the JSON output are not constant, so hardcoding is not an option. Question: How do I pr ...

Arranging two div elements side by side with spacing between them using CSS

Can anyone help me with aligning two divs side by side using CSS? I attempted a few methods on my own but seem to be stuck. Any suggestions would be greatly appreciated! CSS: .posts{ display: flex; flex-direction: row; } .posts .col-md-6{ pa ...

Issue with Bootstrap 3: Element refuses to remain within the defined width of the div container

While utilizing bootstrap 3 within a small div, I noticed that when I enlarge the window by dragging it horizontally, the fields (username and password input fields) that should remain inside the div end up shifting towards the center of the window. Can an ...

Accordion not appearing on the webpage

I'm currently working on implementing a helpful feature at the bottom of my webpage to assist users with navigation. I was thinking of using an accordion as a dropdown helper, but I've been facing some challenges getting it to function properly. ...

Mobile navigation bar with Bootstrap transparency

I recently encountered a challenge with my Bootstrap navbar where I needed to remove the background. To achieve this, I applied the class "navbar-fixed-top" to the main wrapper. <nav class="navbar navbar-fixed-top"> After making this change, the na ...

Is an audio player/playlist necessary for showcasing a mix engineer's skills in their

As a newcomer to the world of web development with some background knowledge from school, I work as a mix engineer and have created a portfolio website. Previously, I utilized Soundcloud and Spotify's API to showcase my mixes/songs, but the external J ...

Can the warning about a missing dependency in useEffect be incorrect at times?

After using hooks for some time, I still don't quite grasp why React insists on including certain dependencies in my useEffect that I don't want. My understanding of the 'dependencies' in a useEffect hook is as follows: You should add ...

The JQuery parseFloat() function seems to be consistently returning "NAN" whenever it is used with the .text property

I am currently encountering an issue with parsing the text property of an input element identified by the id currency-converter. My goal is to convert this text into a floating-point value so that I can proceed with applying mathematical operations to conv ...

Failure encountered when attempting to load JSON data into datalist

I've been trying to incorporate inputs into a datalist in two different ways. However, I've encountered an issue with the first method not working properly. --> Check it out on bootlply var dataList = document.getElementById('json-datal ...

Using the .map method to index an array is causing issues in Node.js

Hey everyone, I'm struggling to properly index a JSON array using the map function. It seems like my code isn't quite right. This is what I have: var entireHTMLssssq = lloopmois.map((result, index) => `<div id=${index} style="position: a ...

What is the best approach to smoothly rotate a cube by 90 degrees in three.js?

Currently, when I rotate the cube using key 'a', 'w', 'd', or 's', the rotation is instant. However, I would like to create a smoother rotating motion so that the user can see the cube twisting gradually, instead of ...

dynamically adding a new selection to a dropdown menu as chosen

Adding a New Option with jQuery dynamically and it is functioning correctly $('#department').append(new Option(response.departmentname,response.departmentid)); How can I set the newly added option as selected? ...

My goal is to display the information retrieved from my AJAX response within my jQuery data table

I am attempting to display my AJAX response in a jQuery data table. The structure of my table is as follows: <div style="margin: 20px;"> <table id="example" class="display" style="width:100%"> ...

JQuery Ajax Json Feed Encountering Invalid Character Error

I'm using a JavaScript function to retrieve a Json Feed. function FetchCustomerDetails(CustomerNumber) { $.ajax({ url: "GetCustomerDetails.php", type: "GET", data:{CustomerNumber:CustomerNumber}, async: true, dataType: "json", success: function(Re ...

Formatting dates for the bootstrap datepicker

Hi there! I am currently using a bootstrap datepicker and I am attempting to retrieve the value from the datepicker text box in the format of date-month-year for my controller. However, at the moment, I am only able to obtain values in the format Tue Oct 0 ...

Transforming the color of Material Design Lite badges

Incorporating Material Design Lite (getmdl.io) into my web application, I have implemented a card with a badge displaying the number of notifications. Despite attempting to modify the css code as follows: .mdl-badge { background: #FF3D00; } I am unabl ...

Display an icon when clicked using ng-click

Currently, I am delving into the world of Angular and facing a challenge in displaying an icon after triggering a function call using ng-click. I have attempted to use ng-if for this purpose but unfortunately, it did not yield the desired result. I would g ...

css - Issue with Margins Not Aligning Correctly Despite Using Inline-Block and Parent Element with a Fixed Width

I'm having trouble centering a pair of buttons inside a form. These buttons are enclosed within a <div> with display: inline-block, so the <div> is only as wide as the buttons themselves. The parent element to this <div> is a <for ...

Guide on creating an AJAX request to retrieve a sample JSON structure using a loop and storing it in a variable

I have devised a sample JSON structure that requires me to make individual calls using each/for loops in order to store the values in variables. The desired output format of these calls should resemble: parent1 = child11 child12, parent2 = child2, parent ...