Troubleshooting the Full-Height Background Problem with Flexbox

My 2 column layout is designed to fill 100% height and works perfectly, but in Chrome / Safari, the background on the right column gets cut off when scrolling if the content exceeds the browser height:

Check out my code here

See a screenshot of the scrolling issue https://i.sstatic.net/FmJ8Y.png

I'm struggling to find a solution to this problem, any help or suggestions would be greatly appreciated.

Answer №1

It seems that the root of the issue lies within this particular div element.

<div class="row h-100">
  //Content
</div>

The problem arises from applying a height: 100%; to this div, especially when the height of the right and left columns is fixed to the window height.

To resolve this issue, consider removing the h-100 class from the div, which should help rectify the situation.

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

What is the best way to determine the accurate size of a div's content?

There are 2 blocks, and the first one has a click handler that assigns the block's scrollWidth to its width property. There is no padding or borders, but when the property is assigned, one word wraps to the next line. The issue seems to be that scrol ...

Finding the location of the page screen or an element with Jquery/Javascript

How can I determine the position of a DIV relative to the body or html tag? For example: If I have an element moving up the screen. When the page is scrolled vertically, and the DIV reaches a certain height on the screen, it changes color. Once the DIV ...

CSS image buttons are causing active_link_to list items to disappear when they become inactive

I'm struggling to get the nth css button/list elements to display correctly using active_link_to. The first css button appears without any problems and is active, but when I try to add new buttons to the list, they seem to disappear. HTML <li cla ...

Is there a way to ensure that the JSON data and the image appear on the same row with some spacing between them?

Trying to display JSON data with images and text side by side but facing issues where the text wraps below the image instead. How can I fix this layout to show text next to the image? Flex-wrap property doesn't seem to work as expected. function for ...

Options for making the Facebook Like Box responsive

I'm in the process of creating a responsive layout with unsemantic, and I want to adjust the settings on a Facebook Like box when switching between desktop, tablet, and mobile views. Essentially, I would like the options to change so that faces and po ...

Tips for automatically adjusting a vertical side bar to fit between the browser's header and bottom

I'm having trouble with aligning my sidebar vertically between the header and the bottom of the browser window. Currently, the bottom items are extending beyond the browser's bottom edge. How can I adjust this to ensure proper alignment? Here is ...

Prevent Drag-and-Drop Functionality for HTML5 Range Inputs

Is it possible to prevent HTML5 drag and drop functionality on a specific element within a draggable container? In our scenario, we are creating a list of items with settings, including the use of <input type="range" />. However, when users attempt ...

"Enhancing HTML with JavaScript to handle overflow issues

I'm working with a scrollable div using the CSS property overflow-y set to auto. My goal is to have a disabled button located below this div, and I want it to become enabled once I've reached the bottom of the content inside the div. Is there a w ...

What is the best way to style my text fields in Django using Bootstrap?

In my form class, I have lines that look like this: class ReportForm(forms.ModelForm): diagnosis = forms.CharField(widget=forms.Textarea(attrs={'cols': 200, 'rows': 3})) class Meta: model = Report Then, when I render the form ...

Clicking on various buttons will trigger the opening of different tabs within a single modal window

Imagine I have two distinct buttons, A and B. Within a single modal window, there exist two tabs labeled as a and b. My goal is to be able to click on A and have tab a displayed in the modal, while clicking on B should reveal tab b within that same modal. ...

Avoiding memory leaks and performance hiccups in canvas applications

Currently, I am utilizing a canvas to present a grid made up of interconnected dots (a common feature in many codepens and experiments), and everything functions smoothly. In order to make the canvas responsive, I encapsulated all my code generation within ...

What is the best way to position a textarea and text input on top of each other alongside a radio button?

Currently struggling with the layout of a website project, specifically positioning a text input and a textarea above each other next to a larger radio box. I came across a similar issue on Stack Overflow but unfortunately, it did not solve my problem. Ide ...

Creating a unique HTML design with Django Allauth

While there is no shortage of information on the topic, such as this thread and this one, I haven't been able to find a resource that explains it in a way that even a 5-year-old or a designer could grasp :) I only have knowledge of HTML and CSS, and ...

Utilizing Images as Backgrounds in JSP

Looking for assistance with adding a background image in a JSP file without overlapping the navigation bar? Check out my code below: <jsp:include page="index_header.jsp"></jsp:include> <div class="container"> <div style=&ap ...

Guide to positioning front layer in CSS3

I am currently working on a page and have added an "Under Construction" banner to indicate it is not yet finished. Could someone assist me in bringing the png to the forefront on this link? ...

Is your overlaying div functioning properly in Chrome and Firefox, but encountering issues in Internet Explorer?

I am facing a challenge with overlaying two divs on top of an image. My objective is to create a simple lightbox where when the user hovers over the left or right side, the cursor changes to a pointer and arrows appear. Below is the code I am using: HTML: ...

Differences between CSS property `transform` and `position: absolute`

Can you explain the distinction between position: absolute; top: 50%; left: 50%; and transform: translate(-50%, -50%); What are the advantages of one over the other? ...

Enhancing user experience with autocomplete functionality using jQuery combined with server

Struggling with autocompleting a search field using jQuery-UI and encountering issues when trying to integrate PHP as the data source. The setup works smoothly with a variable as the source. JS: $(function () { var data = [ "ActionScript", ...

Retrieve the hidden input values from a div using jQuery

Currently, I am in the midst of a project using CakePHP with jQuery and AJAX. Within this project, I have a div that is being repeated in a PHP loop. Here is what the div looks like: <div class="heart"> <input type="hidden" i ...

Tips for optimizing webcam image responsiveness: Although the webcam is functioning properly, it may not

Looking for help with making a responsive webcam image using webcam.js. I've defined the height and width in my JavaScript, but the captured image is not responsive. Here's my JavaScript code: function setwebcam() { //$("#set_cam").h ...