The lower section of the webpage gets clipped when scrolling upwards

I have attempted numerous variations, but I am at a loss for what to do next.

Every time I modify top:0px in kontener and introduce margin:42px in kontener_auto_2 at the bottom, the site looks fine, except the upper scroll and kontener are positioned under nav.

The desired outcome is for the scroll to be below #nav while still being visible entirely.

html {

  position: fixed;
  top: 0px;
  left: 0px;
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: 100%;
  overflow: hidden;

}

body {

  height: 100%;
  margin: 0;
  padding: 0px;
  overflow: hidden;

}

#nav {

  position: fixed;
  top: 0px;
  left: 0px;
  height: 40px;
  width: 100%;
  background-color: #000000;
  z-index: 99;
  border-bottom: 2px solid #4d93d1;
  -webkit-box-shadow: -2px 10px 11px -9px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -2px 10px 11px -9px rgba(0, 0, 0, 0.75);
  box-shadow: -2px 10px 11px -9px rgba(0, 0, 0, 0.75);

}

#kontener {
  position: absolute;
  top: 42px;
  left: 0px;
  padding: 0px;
  margin: 0px;
  height: 100%;
  width: 100%;
  background-color: #1F1F1F;

}

#kontener_auto {

  padding: 0px;
  height: 100%;
  overflow: auto;
  
  
}


#kontener_auto_2 {

  margin-left: 20px;
  margin-top:20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(182px, 1fr));
  grid-auto-rows: auto;
  grid-gap: 10px;
  margin-right: 20px;
   

}

#tumble {
 
  float: left;
  height: 180px;
  width: 250px;
  background-color: red;


}
<!DOCTYPE html>
<html>

  <head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="temp.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  </head>

  <body>

    <div id="nav"></div>
    <div id="kontener">

      <div id="kontener_auto">

        <div id="kontener_auto_2">

          <div id="tumble"></div>
          <div id="tumble"></div>
          <div id="tumble"></div>
          <div id="tumble"></div>
          <div id="tumble"></div>
          <div id="tumble"></div>
          <div id="tumble"></div>

        </div>

      </div>

    </div>


  </body>

</html>

I am urgently seeking assistance on how to make my dream effect a reality.

Answer №1

By including height:calc(100% - 42px); to kontener_auto, the issue has been resolved and now it appears pleasing to the eye.

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

The sup tag does not function properly when used within the title tag

I added a sup tag inside a title tag but it doesn't seem to work. Surprisingly, the same sup tag works perfectly fine within li tags. Can anyone explain why this is happening? I tried changing the title tags to H class tags but I'm still curious ...

Tips for creating animated card designs with HTML, CSS, and JavaScript

As I delve into the realm of CSS animation, my primary focus is on replicating the captivating card shuffling animation showcased at Here's a glimpse of the progress I've made so far: https://youtu.be/GDIJ2K22cnY While I've successfully im ...

Having trouble with the find method when trying to use it with the transform

In my code, I have three div elements with different values of the transform property assigned to them. I store these elements in a variable using the getElementsByClassName method and then try to find the element where the value of the transform property ...

The tubular.js Youtube video background is overlapping my other components on the site, instead of displaying behind them as intended

I recently implemented the tubular.js script on my webpage to display a YouTube video as the background. On the tubular page, there is a statement that reads: First, it assumes you have a single wrapper element under the body tag that envelops all of ...

Tips on Utilizing If/Else Conditions in HTML Table TD_TAGS

Can someone please explain how to implement an if/else condition within this <td> tag? <td data-label="Status">{{$t('Status'+item.cStatus)}}</td> This is what I am trying to achieve: if(item.cStatus == NW){ color:red ...

Develop a JavaScript function

Is there a way to define the properties of an object in HTML and then create a function in JavaScript that will return that object? This is the HTML code: <object id="desktop" type="application/x-desktop" width="500" height="200> <param name="cl ...

How can I locate the exact XPath using an ID and div element?

I am faced with a challenge involving a table of names where each name can be accessed by a specific XPath: //*[@id="right_pane"]/div[1]/table/tbody/tr[INDEX]/td[2], with the index being a number. I am seeking the most efficient way to search for these XPa ...

Issue with Angular select not successfully binding to enum value

I am facing an issue with my component.ts file. Here is the code snippet: import {Component, OnInit} from '@angular/core'; import {IBook} from "../../models/book.model"; import {ActivatedRoute} from "@angular/router"; impor ...

What steps are involved in building a modal pop-up in Angular without using any pre-existing libraries

I am looking to create a modal popup when a button is clicked. I want to achieve this without relying on any additional dependencies. The method I have used below successfully creates a fully functional modal, but I am unsure if this is the best way to do ...

Adjusting Flexslider to perfectly accommodate the height and width of the window dimensions

Currently, I am using Flexslider version 1.8 and seeking to set up a fullscreen image slider on my homepage. My goal is to adjust the slider to match the browser window size. While experimenting with width:100% and height:auto properties, I have managed t ...

Dealing with customized protocol responses in JavaScript

My web server is set up to return a response like: HTTP/1.1 302 Found message://ActualMessage While this setup works seamlessly for UI clients like Android and iOS, I'm faced with the challenge of handling this case on a web browser. For instance, ...

Attempting to adjust the width upon hovering with CSS

I have attempted this previously and cannot figure out why it is not functioning properly. I am attempting to do the following: http://jsfiddle.net/geometron/u3M6r/1/ <ul> <li><a href="content1.html"> Demo 1 </a></li> ...

CSS: Placing text within an icon - A simple guide

Hello, I am currently working on an Ionic application where I have rounded areas to display information. My challenge is to incorporate a number inside a heart icon within the second area. I want to ensure that the alignment of the number and the heart is ...

Image superimposed with vertical dimension

I have a photo with specific dimensions and I want to create a div box with a button inside the image, similar to what is shown in this example: Example Image Here is my current code attempt: .wrapper { width: auto; text-align: center; } .wrapper: ...

What is the method to dynamically update the header with JavaScript?

I am struggling to achieve consistent vertical alignment from the top for all title fields. In other words, I want to assign the same top value to each title field so they are aligned at the top. To illustrate this issue, let's consider a live site & ...

Can a CSS3 filter be utilized to transform gradient colors into solid colors?

I have an interesting scenario where I am using a -webkit-mask with a radial-gradient to create small dots on a background image. These dots are transparent, allowing the background image to show through. However, each dot has a gradient color within it. ...

How can an Embedded React + JSS component safeguard generic elements such as <button> and <p> from being affected by the page's style?

I am facing a challenge with a React component that is being embedded in various webpages, either through an extension or as a third-party tool. Most of the styling for this component is done using JSS, ensuring unique class names that cannot be overridde ...

Troubleshooting: Issues with importing Less files in TypeScript using Webpack and css-loader

I am currently working on a test project using TypeScript and Webpack. I have an index.ts file and a base.less (or base.css) file imported in the index.ts, but I am experiencing errors with the css-loader. Interestingly, everything works fine when the LESS ...

The vertical menu was added, but the text did not align properly

I pasted a sidebar from a different source https://i.stack.imgur.com/jkYWz.png My goal is to have the text appear at the top of the page, similar to this example https://i.stack.imgur.com/1aR5s.png After adding this line, my text is displaying at the b ...

If the width is below 767, the previous code will not be effective in jQuery

Challenge: How can I ensure that the code within the if statement only executes when the screen width exceeds 767px, and does not work if it is less than 767px? Using jQuery: $(document).ready(function() { $(window).resize(function() { if ($( ...