Nested divs with scrollable content - height limited to 100%

I've browsed similar posts, but haven't come across one that addresses my specific issue.

The layout I'm working with has a left and right column. Within the left column, there are two rows.

My goal is to make the bottom row of the left column scrollable without overlapping with the top row content.

    <div id="left">
      <div class="top-row-header">
        Heading for the top row
      </div>
      <div class="bottom-row-content">
        Content that should be independently scrollable 
     </div>
   </div>
    <div id="right>
      Scrollable text for the right column
    </div>

Check out this fiddle for a visual demonstration: http://jsfiddle.net/bec4pm98/

I've made some progress, but the size of the bottom row in the left column is too large. I'd like it to adjust its size relative to the top row.

Answer №1

The left-inner section is set to have a height of 100%, while the jumbotron is its sibling. To achieve the desired layout, adjust the height of jumbotron to 20% and the height of left-inner to 80%.

For an example, visit: http://jsfiddle.net/bL99yds1/

Due to being on a mobile device, it's not easy to make precise adjustments at the moment. However, the concept should be clear.

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

Learning to read HTML tags using JavaScript is a valuable skill

I've been struggling with a problem for some time now and I really need help fixing it. Here's the issue: I have an asp:GridView where I store text with HTML tags in my database under an English column. During the DataBound event, I use Context. ...

Is it possible to detach keyboard events from mat-chip components?

Is there a way to allow editing of content within a mat-chip component? The process seems simple in HTML: <mat-chip contenteditable="true">Editable content</mat-chip> Check out the StackBlitz demo here While you can edit the content within ...

I have multiple div containers on my webpage, and I'm looking for a way to dynamically load data into a specific div without having to refresh the entire page using PHP and Code

Is there a way to load data into only the second div tag when clicking on a link, without refreshing the entire page? I want to ensure that the first and third div tags remain static while allowing the second div tag to be dynamic. <div class="first" ...

Implement FluentUI Progress Component as the New Style in Blazor

Looking for a solution to remove the track from the FluentUI Progress bar, but limited to using only this library. Unable to consider alternatives. Tried applying CSS in my application to override the default style, but it seems any modifications to the c ...

Ways to create space between columns in a table

How can I achieve the table layout with a gap between columns, as shown in the design? Initially, I tried using border-collapse: separate but found it difficult to adjust borders in the tbody. So, I switched to collapse. Is this the right approach for crea ...

The Parallax effect functions properly on web browsers, but fails to work on mobile devices

I recently incorporated a parallax effect into the image gallery section of my website. While everything seems to be functioning perfectly in standard desktop and responsive modes on various browsers, I have encountered an issue when attempting to view the ...

Experiencing excessive white space at the bottom on Bootstrap 5 for larger devices

Can anyone help me with this issue I'm experiencing while using Bootstrap 5? I have noticed that there is always white space at the bottom of the large device display. Please refer to the image attached for more clarity. Does anyone know why this whit ...

Order of flexbox items when placed within separate divs?

Looking to rearrange the order of items using flexbox, but hitting a roadblock because one of the items I want to reorder is in a different div and not a direct child of the same parent as the other items. <div class="wrapper"> <div class="some ...

Having trouble centering elements correctly with Bootstrap 5

Just dipping my toes into the world of bootstrap and experimenting with some code. Encountered an issue when trying to center elements properly within columns: <div class="container"> <div class="row"> <div class= ...

Refreshing ng-model within a radio input

Currently, I am utilizing a jQuery library for radio/checkbox components. Although I am aware that combining jQuery with Angular is not ideal, the decision to use this particular library was out of my control and cannot be altered. One issue I have encount ...

Show information based on a specific letter

So, I've managed to get this page working well but now I'm looking to display data based on a specific letter. Here's the code I currently have: <html> <head> <title>MySQLi Read Records</title> </ ...

Ways to automatically style the child divs within a parent div

I'm trying to figure out how to float a parent div with child divs of different widths and heights while maximizing the use of space and not being affected by absolutely positioned elements. For reference, here's an example: http://jsfiddle.net ...

Utilizing jQuery Appended Data in Forms for Dependent Inputs

Apologies if the title I have chosen is not very clear. My query pertains to a form with connected inputs as demonstrated below: <form> <input type='text' name='item-1'/> <input type='text' name='sub-item ...

Utilizing jQuery for cloning elements

I need to add functionality for adding and deleting rows in multiple tables on my website. Currently, I am doing this by directly inserting HTML code using jQuery, but it has become inefficient due to the number of tables I have. I am considering creating ...

Choosing the image that represents your website in Safari web previews

Every time I check iCloud.com on my Safari top sites, the thumbnail is always the same. I'm curious about how I can automate this for my own website. ...

Using Javascript to convert numerical input in a text box into its corresponding letter grade

I have been working on this code, but I am facing some issues with displaying the result. My goal is to input a number, such as "75", click a button, and have the bottom textbox show the corresponding letter grade, starting with "C" for 70-80 range. Here i ...

Create a single CSS style rather than using multiple CSS styles

I currently have multiple CSS styles applied: form#reply_form-c1r1.odgovor div#cmtforms-c1r1 input{color:red} form#reply_form-c2r1.odgovor div#cmtforms-c2r1 input{color:red} form#reply_form-c3r1.odgovor div#cmtforms-c3r1 input{color:red} form#reply_form-c4 ...

What could be causing the issue with HTML not being printed upon button click in ReactJS?

My goal is to display the word "Hello" on the screen when the add button is clicked. However, I am encountering an issue where it is not showing up. Any insights or solutions would be greatly appreciated! import React, { Component } from 'react'; ...

Update the text content of an HTML element by fetching data from a database using AJAX and JQuery based on its

I recently started learning Jquery and came across an issue while working on a web development project. I am trying to dynamically convert an HTML element to a paragraph based on the ID from the URL which is fetched from the database. Here is the code sni ...

Building a drop down menu with HTML and CSS: a step-by-step guide

Looking for a way to create a dropdown menu for the list item with the id "gameDesignPage" in my HTML structure: <div class="MenuContainer"> <div class="Menu"> <div class="MenuContents"> <ul> ...