Sidebar height is not at 100% full height

I am using Bootstrap 3 and attempting to create a dual sidebar layout. Here's what I have so far: http://jsfiddle.net/Y52n9/11/

However, when you resize the preview screen to be large enough, you'll notice that the sidebar height is not reaching 100%. I've tried various solutions but haven't been able to fix it. Does anyone have any tips for me?

This is my HTML code:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>xmed</title>

  <!-- Bootstrap -->
  <link href="css/bootstrap.min.css" rel="stylesheet">
  <link href="css/styles.css" rel="stylesheet">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body>
...

Below is my CSS code:

html, body{
    height: 100%;
}

.height{
    height:100%;
}
...

Answer №1

Experiment with using display:table-cell on the elements .leftsidebar, .rightsidebar and the container beneath .rightsidebar, eliminating the need for float: left on those elements.

I have included the property display:table-cell within a media query for device widths greater than 768px, so feel free to adjust the size of the result section in the provided demo below.

Give this approach a try and see if it resolves your issue.

Check out the DEMO here!

Answer №2

Consider adding the following CSS to your sidebar:

.sidebar{height:95vh;}

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

SQL table not being updated by AJAX request data submission

I'm encountering an issue when trying to update a SQL table with form data sent via a JQuery AJAX POST. Even after using mysql_error(), no errors are being returned. As a troubleshooting step, I appended "-Test Test" to my textarea input. This addi ...

Remove Bootstrap-Table's box-shadow on the search bar's delete button

Is there a way to eliminate the box-shadow from the search box upon clicking on it? I am familiar with removing box-shadows from classes in CSS, but I am unsure of how to remove the box-shadow from a specific property like "data-search" within the tag. ...

Develop a function that resets a timer automatically whenever a user clicks a button, ensuring that all users on the website see the same information at all times

I have a unique idea for a website where users can participate in discount sales based on a timer. The timer starts at zero and counts down from 11 seconds every time a user clicks the discount button. If another user clicks the button before the timer r ...

Is it possible to have separate click functions for the onclick attribute and jQuery click handler on an anchor tag, instead of just calling one function through onclick?

Attempting to implement multiple click handlers for an anchor tag: one using the "Onclick" attribute handler and the other using a jQuery click handler. This excerpt is from my HTML file. <html> <head> <script src="http://code.jquery.com ...

What is the best way to ensure that custom JavaScript and CSS files in Sphinx are always loaded with the most recent changes

Within the configuration file conf.py for Sphinx, I have specified the following: html_css_files = ['css/custom.css'] html_js_files = ['js/custom.js'] However, any alterations made to custom.js or custom.css do not immediately appear i ...

Extract the snippet text from a Google search results page

When conducting a Google search, we often come across answers presented in snippets like the one shown below: https://i.sstatic.net/YuZU8.png My goal is to extract the text ("August 4, 1961" highlighted in red in the screenshot) using Python code. Prior ...

The list does not get updated through the Ajax call until another request is made to the server

I am currently facing an issue with my ajax call that updates a kendo multiselect's data source based on another dropdown selection. The multiselect also has a read action that filters the data. AJAX Call function getPsychiatrists() { return $.aj ...

Navigating through the various iterations of jQuery

Unique Case Study I'm currently facing a dilemma involving the integration of jstree and jquery-ui datepicker. The scenario is this: I am attempting to utilize jquery-ui-datepicker on an input element that is dynamically inserted into the DOM after ...

Leveraging jQuery DataTable for efficient data rendering in MVC applications

After successfully implementing Server-Side processing in MVC for jQuery Datatables, I am displaying 1 to 10 of 8,037 entries (with pagination). However, the initial load time when navigating to the page with the table is quite long, ranging from 5 to 10 s ...

"Embrace the Tempus Dominus integration for the latest version of Bootstrap -

After reading through the script documentation, I attempted to implement it on my example page. However, I keep encountering the error: Uncaught TypeError: $(...).datetimepicker is not a function. Here's the code snippet that I included in the head s ...

Ways to incorporate a focus event into a template

I'm currently working on implementing autocomplete functionality in the search box on my homepage. To achieve this, I have included an onfocus event for the template to execute a jQuery command targeting the source elements. The method I used to add j ...

How can I create a parent div with cursor-pointer and apply inline styling to make all child elements

Is there a way to apply the cursor-pointer style to an entire div with inline CSS without it affecting just the white space around the child elements? I have tried using position and z-index without success. I am unable to use an external stylesheet for t ...

jQuery: ensuring the focus is given after displaying a tab

I'm struggling to set the focus on a field after displaying a (Bootstrap) tab, and I can't seem to make it work: $.fn.checkError = function(elem) { ... $('#myTab a[href="#tab2"]').tab('show'); $(' ...

What effect does setting div1 to float left have on the layout of div2 in css?

Behold the mystical code written in HTML. <div id="sidebar1"> sidebar1 </div> <div id="sidebar2"> sidebar2 </div> Beneath lies the enchanting CSS code for the aforementioned HTML structure. div { width: 100px; ...

Slide both divs simultaneously from left to right

Is there a way to simultaneously hide and show div elements, without having to wait for the effect to take place? Here is my current code: $('a').on('click', function(){ var div_hide = $(this).parent(); var div_show = $(this). ...

Achieve seamless alignment of radio group labels alongside radio buttons through the use of only CSS

After using a table to display radio buttons with labels in the past, I am now attempting to achieve the same result using only CSS. Is there a CSS technique that will allow me to position the label text neatly on top of the corresponding radio button? He ...

Tips for navigating between slides on a CSS carousel?

I am currently in the process of creating a CSS-based carousel .carousel { -webkit-scroll-snap-type: x mandatory; -ms-scroll-snap-type: x mandatory; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overflow-x: scro ...

How can you utilize a bind function to deactivate a button?

Can someone help me figure out how to temporarily disable a button using the bind function for 10 seconds? jQuery('#wsf-1-field-155').bind('click', function() { ScanRegistration(); setTimeout(function() { jQuery('#wsf- ...

Tips on adjusting the CSS to fix the scrolling issue caused by images in a carousel slider

I am facing an issue where a scroll is being created and it appears offset on different screen sizes: https://i.sstatic.net/KYTCN.jpg I need help to resolve this problem and make it responsive. Even after trying to add overflow: hidden; it still doesn&a ...

Froala text area is unexpectedly visible when I attempt to cover it with a partially see-through mask

The website I'm currently developing features a semi-transparent overlay that dims the screen with a light-colored message displayed on top. This overlay and message are shown whenever there is a background process running. Everything was running smoo ...