What is the best way to eliminate this pesky space that appears to be caused by the background repeating in HTML/C

Seeking assistance in resolving an issue with my gradient background repeating on my webpage after reaching a certain point due to a large amount of content.

The page can be found at . Upon scrolling to the bottom, you'll notice an excessive amount of white space that I aim to reduce. While inspecting the code using Chrome Dev Tools, I came across an additional line of code that does not seem to correlate with any files in my HTML or CSS:

<div style="position: absolute; z-index: -10000; top: 0px; left: 0px; right: 0px; height: 1793px;"></div>

This mysterious code and the repeated background issue do not occur on other pages, even when more content is added. The problem appears to be related to the "content" div, responsible for containing the text on the "About Me" page.

/*Main content area with text boxes - Used For About & Assignment Pages 
content {
position: absolute;
width: 50vw;
height: 125vh;
left:0;
right:0;
top: 25vw;
border-radius: 2vw;
margin-bottom: 1vw;
margin-left:auto;
margin-right:auto;
background-color: #FFF;
-webkit-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
}

Your insights and feedback would be highly valued,

Thank you, Josh

Answer №1

If you go to the .abouth1, .abouth2, abouth3 area of the webpage, be sure to eliminate the height: 100%; style.

Adjust the height of #content to be 100%

or

You can also change the height of #content to 90% for a more precise fit

Answer №2

Eliminate the height: 100%; rule from the selectors .abouth1, .abouth2 and abouth3, and adjust the height of #content to be 100% instead.

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

Implement a navigational system that allows for expanding sub menus through the use

I have been developing a navigation menu that includes nested sub menus. I am interested in making the menus expandable upon clicking the parent menu item. Below is my HTML code snippet showcasing 2 ng-repeat functions within the parent menu item, as well ...

Transition smoothly between HTML pages by using a script to fade in and out while changing images from an array

I am facing a small issue. I have successfully implemented a fadeIn and fadeOut effect on an entire page by clicking HTML links. However, I now want to dynamically change the images associated with these links using an array. Here is the code for transiti ...

Creating a 3-layered CSS animation featuring a mesmerizing wave effect

I am currently working on creating a wave animation using three layers. However, the animation does not appear smooth and the waves do not appear endless as intended. Additionally, I am having trouble achieving the wave structure depicted in the image. My ...

Keep label at the forefront once input field is completed

Is it possible to keep my label positioned on top of the input field even after filling in data? I attempted using the valid function in CSS, but did not achieve the desired functionality. .txt_field input { width: 100%; padding: 0 5px; height: 4 ...

Tips for displaying an alert after a successful form submission and ensuring user input validation

I created a form with PHP code to send emails, but I'm struggling to add an alert without page refresh upon submission. The alert needs to display in green or red text below the button. Validation for email input is needed, as well as protection again ...

The margin 0 auto feature is ineffective, and instead, the target is activated upon the page's initial loading

As a beginner in CSS, I am encountering some issues with the HTML page of my application. I am currently working on an app and aiming to create a login view where the login form appears either after a voice command or button click. I am facing two main pro ...

Transform the look of your bootstrap 5 inputs by making them dark-themed

I have a feature in my app that allows users to switch between light and dark modes. Currently, I am using Bootstrap 5 form-control inputs and want to customize their background color based on the mode selected. Which CSS classes do I need to target in or ...

Google Book API is a tool provided by Google that

I am trying to loop through the items array provided by the Google Books API and display the result within a div, but I'm having trouble doing so. Here is my current code: <body> <div class="main-body"> <form id="form"> ...

"Create a smooth transition effect in CSS by fading out one div and fading in

I've set up a grid of buttons, and my goal is to have the grid fade out when a button is clicked, then fade in with a new div in its place. This involves animating opacity from 1 to 0 and vice versa while toggling the display:none property for content ...

How can CSS be used to create a responsive form script?

We have enlisted the services of an SEO provider through upcity.com, which necessitates us to embed a form on our website. However, we are facing challenges with the responsiveness of the form on mobile devices, which undermines our efforts. Therefore, I a ...

When does the browser start rendering after jQuery modifies the CSS?

I'm curious about how my jQuery code affects the browser when adding and removing multiple style classes. Will the browser re-render with each line of javascript code? Take this example: $(this).addClass('text1-hidden'); $(this).removeClass ...

What is the new Bootstrap equivalent for btn-group-justify?

Could someone help me align the 3 radio options in this HTML code to make them appear justified? I have already tried using d-flex and btn-group-justify without success. If anyone could provide a sample using only Bootstrap 4.1+, it would be greatly appre ...

Ways to adjust the placement of a div element with the class card

Good evening, I am currently in the process of developing an online shopping website. I would like to adjust the positioning of a specific div on the page to align it similarly to another class called card div. Please refer to the image below for better ...

IntelliJ automation in Java does not allow clicking the button

Currently, I am on the PayPal page and I need to automate clicking the agree button. <form id="ryiForm" class="proceed ng-pristine ng-valid" ng-class="{true: 'validated'}[validated]" ng-submit="confirm.$valid && onPay()" novalidate= ...

Designing a blurred and distinct margin with the hover effect in html and css

Hey there, I've been attempting to replicate the hover effect on the buttons located on the left-hand side of this site , but unfortunately, I haven't had much success. The effect seems to involve a shift in margin and an unevening of margins tha ...

Asynchronous Function Implementation of Cookies in JavaScript

Here's my query: Is it possible to store a cookie within an async function? For example, creating a cookie from this fetch and then accessing it later within the same function while the fetch continues to update the value each time the function is ex ...

How to position div elements in the center on screens smaller than 768px?

Issue: Facing trouble centering my product grid under 576px. Question: How can I adjust the CSS to ensure the products are centered under 576px? My goal is to have the products centered when the screen size is under 768px, particularly for mobile devices ...

How do I alter the post title font size with a child theme?

After updating my theme, I noticed that the H1 for my Posts titles in the "Next Posts" section changed to H4 unexpectedly. How can I revert it back to how it was before? I've attempted fixing it without success. If you need a visual reference, you ca ...

What causes the unusual behavior of css property "all: unset" in the Safari browser on MacOS?

Here's the situation - the parent element has the CSS property all: unset. I noticed that in Safari (Version 12.1.1 (14607.2.6.1.1)), all the children of this parent are only affected by the * selector, ignoring inline styles and even the !important ...

Continuously refreshing the content

Having an issue with the $.ajax() function while trying to load content into a DIV from another page. The content keeps reloading into the element continuously. Observing my debugger, it seems that the element .driving_action_body is constantly reloading ...