Itās not a case of removing the white space but of growing the content to be tall enough for the viewport. Usually you would create your pages with that in mind and use the same structure on every page.
To achieve on the about_us_1.html page you could do this.
Yes indeed you do . You answered the question yourself
Why didnāt you try it out ?
The nav needs a higher z-index than anything else (other positioned elements) on the page so give it a suitable number and make sure you donāt give anything else a higher number.
nav ul {
display: inline-block;
padding: 0;
bottom: 0px;
border-right: 1px solid rgba(108, 108, 108, 1);
margin: 0;
list-style: none;
position: relative;
z-index:99;/* only needs to be 1 to work but keep it higher just in case */
}
I also note you left a block of code right in the middle of the codepen that shouldnāt be there
There are 2 images and they are fluid in size up to 50% of the available width.
What size do you want them to be and how should they act when they no longer fill the width? Should they be left aligned or right aligned or centered or should they be one large image all the way across.
Should the container shrink with them or stay at the large size of the screen.
As you see there are a myriad of choices for you to explain so itās not quite as simple as you may exect although the answer may be simple once we know what needs to be done
Iām going to guess that you want the image to still be fluid but not to get too big. I;ll also assume that the container stays full width and that you want the two image centred next to each other rather than centred in each half of the screen.
Unless of course there are going to be more or less images then that would need re-thinking.
Too many variables to give a proper answer but try this for now.
.container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 480px));/* this changed to 480px from 1fr*/
margin: 10px auto;
padding: 10px;
max-width: 1880px;
background: #f9f9f9;
border: 10px solid #000;
/* place-content:center; would be centred if this is used */
justify-content:space-evenly;/* spaced evenly if this is used*/
}
I set the image width to scale between 280px and 480px and to be centred/spaced evenly, auto-fit, minmax(280px, 480px))
Thatās about all I can do until I know the exact requirements
Why have you given the grid 3 rows then. The above is 2 rows so change the footer to 2 rows.
.grid-container {
grid-template-rows: 1fr 1fr;
}
The above will fix that.
I must have said this about 5 times a day for the last 20 years but donāt use a fixed height for containers that hold fluid content like text.
e.g.
.grid{
height: 80vh;
}
I have your design open in a window above this tab so I can look at both at the same time and your layout overlaps because the content inside is greater than 80vh. That means it would overlap on small screens or any small width or height screens. Do not use height but use min-height and allow the element to grow.
80vh is a magic number anyway and not really a useful dimension for a web page. Use min-height or let the content dictate the height.
Iām not seeing that as it looks the same to me on desktop.