I am having trouble viewing elements located below a div that I created using CSS

Currently, I am working on creating a portfolio page where the initial page opens with a height of '100vh' and width of '100%', which seems to be functioning correctly. However, I am facing an issue where I am unable to scroll down to view other elements on the page that I have placed below this initial section. It appears as though this section is taking up the entire page space and causing other elements to disappear.

return(
      <div>
        <Navbar/>
        
         <section className="valign-wrapper" style={{height: '100vh',width:'100%'}}>
          <div className="center-align" style={{width:'100vw'}}>

       
            <h1 className="animate__animated animate__fadeInDown">Hi, I'm Chijindu</h1>
            
            <div>
            <h3 style={{display:'inline-block',marginRight:'8px',marginTop:'-20px'}} className="animate__animated animate__fadeInLeft">a frontend </h3> <h3 style={{display:'inline-block',marginTop:'-20px'}} className=" green-text animate__animated animate__fadeInRight">developer...</h3>

            </div>
        </div>

        
        

      </section>

        <div class="row red">
      <div class="col s1">1</div>
      <div class="col s1">2</div>
      <div class="col s1">3</div>
      <div class="col s1">4</div>
      <div class="col s1">5</div>
      <div class="col s1">6</div>
      <div class="col s1">7</div>
      <div class="col s1">8</div>
      <div class="col s1">9</div>
      <div class="col s1">10</div>
      <div class="col s1">11</div>
      <div class="col s1">12</div>
    </div>
       
        
        </div>
        

        
        )

The section tag has been set with viewport height and width properties. Despite zooming out or checking browser inspection, none of the rows or columns below are visible, and scrolling downwards is not possible. Apologies for the excessive inline styling present in the code. Any assistance on resolving this issue would be greatly appreciated.

UPDATE: Additional background styles have been added with uncertain effects:

.valign-wrapper {
  background: url('./img/img001.jpg') no-repeat center center fixed;
  -moz-background-size: cover;
  -webkit-background-size: cover;
  -o-background-size: cover;
  background-size: cover;

  
}

Could these background styles possibly be affecting the visibility of other elements on the page?

Answer №1

One strategy is to set the viewport height for the entire window by including:

*,
html,
body{
  height:95vh;
}

Answer №2

My mistake, I've corrected it now. I mistakenly used a CSS code for a loading screen that included body,html{overflow:hidden}. Appreciate the advice.

Answer №3

It is recommended to utilize min-height: 100vh instead of height: 100vh.

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

tap the hyperlink to complete the form and mimic the action of a designated

I'm working on an HTML form that includes a table and two submit buttons. <input type="image" name="button1" value="First Button" src="some_image.png"> <input type="image" name="button2" value="Second Button" src="some_image.png"> One ch ...

ui-router: Issue with ui-sref causing font color to remain unchanged

I've been trying to customize the font color of a navigation link using ui-router's ui-sref functionality, but I'm facing an issue. While I can change the background color by adding it to the .active class in my CSS, the font color remains u ...

I'm looking for guidance on creating a left side divider or box in React js using Material UI since I am new to the

Hey there, I'm just getting started with Material UI and I'm curious about how to achieve something similar on my navbar. Take a look at this image: https://i.sstatic.net/yK8Fn.png I want to create a different color box on the left side of the n ...

Page load triggers background color shift

Here is the structure of my markup: <div class="authentication"> <div class="form-inputs"></div> </div> My goal is to have the color of the authentication section slide down from top to bottom when the page loads. Initially, the ...

"Trouble arises when event listener fails to function following an append operation

Recently, I delved into the world of HTML/CSS and jQuery in an attempt to create a simple web game. Below is a snippet of my HTML code: function playGame() { var theLine = "<div id = \"line\">"; for (var i = 0; i < 9; ...

"Implementing a onClick method to render a component in React with passed props – a complete

Is there a way to properly update the LatestTweetsComponent with data fetched in handleRequest? The `tweets` are correctly updating onClick, but the LatestTweetsComponent is not rendering or updating as expected. It seems like my current approach might b ...

Dynamically populate select options using Spring Boot Ajax technology

Hey everyone, I need some help with populating a select tag with a list of objects in JavaScript. Here's an example of the code: @RequestMapping(value="/getAllIndustries") @ResponseBody public List<IndustryModel>getAllIndustries() { return ...

Error encountered in jQuery's addClass and removeClass functions: Unable to read the property 'length' of an undefined value

Upon loading my page, I aim to have some of the div elements hidden initially and display only one. Here is a script that accomplishes this goal: <script> $(document).ready(function () { $(".total").click(function () { $("#pi ...

Incorporating traditional Bootstrap styling directly into a React application without relying on the react-bootstrap library

My goal is to incorporate my existing bootstrap components into a React project without having to rewrite them to work with the react-bootstrap library. While I have successfully integrated the bootstrap CSS, I am facing issues with the functionality aspec ...

Next.JS: The Key to Long-Term Data Storage

How can we retrieve and maintain data during app initialization or user login so that it persists throughout the application? Currently, every time a page is refreshed, the context is cleared and attempting to use getServerSideProps results in undefined ...

Display a particular div when a specific image is present within another div

I'm currently working on a task, but I'm having trouble with it. If I have an image called smiley.png within a div with the class "selected." <div class="selected" style=""><img width="25" height="24" src="images/smileys/smiley.png ...

Leverage React.JS to iterate through arrays and objects, rendering data seamlessly - even within nested objects

Development of Category's Filter component Implementing the rendering of data from a nested array using React Js Although I attempted to render it as seen below, it is not displaying anything The main focus is on the rendering part only var selecte ...

Two divs with floated attributes and equal heights

My unique HTML is below: <div class="container"> <div class="box"> <div class="float"> <img src='http://media-cdn.tripadvisor.com/media/photo-s/03/9b/2f/db/miami-beach.jpg' /> </div> ...

Getting Values from .Properties File in JavaScript/HTML pages that are Executing in a Node.js Server

I have a configuration file named "site.properties" with the following content: #Properties file #Database Connection Info db.host.name = localhost db.user.name = username db.password = password db.database.schema = db1 #Server Connection Info ...

Error: Expecting only one React element child to be passed into React.Children.only() function

I am encountering an issue while attempting to construct a web table using the antd library. The exact error message reads: "react.development.js:1251 Uncaught Error: React.Children.only expected to receive a single React element child". I have been stru ...

Tips for showcasing the contents of a file on a website

Greetings! I am a newcomer to the world of web development and I am seeking a method to showcase file content on a webpage. Presently, I have succeeded in loading text file content and displaying it in a large text box. However, I am now interested in di ...

What is the proper method for specifying the path to my index.tsx file within a React application?

After using npx create-react-app my-app --template typescript to generate my React app, I decided to reorganize the files by moving them to /src/client and relocating my Express backend to /src/server. However, upon running the relocated React app, I encou ...

How can the combination of OAuth2, React, Node.js, and Passport.js be optimized for authenticating users through Google's sign-on button?

I am looking to incorporate a login button on my website that allows users to sign in using their Google credentials. Ideally, I would like to handle the authentication server-side using Express.js and Passport.js. While I have successfully implemented se ...

Having difficulty removing new or existing lines on StackBlitz

I attempted to experiment with React on StackBlitz, but I encountered a problem where I couldn't delete any lines of code. It seems that while I can add new lines of code, deleting them is not an option. Even when logging in with GitHub, the issue per ...

Learn how to create a disappearing dropdown menu in React that closes automatically when you select a specific category

I'm encountering an issue with a dropdown menu that remains visible on the screen even after selecting a specific category. The selected category is displayed in a box upon selection, but the dropdown menu doesn't disappear as intended. I am look ...