IE10 has a tendency to ignore the overflow properties when using flex-box styling

I'm working on creating a flexbox layout with fixed height headers and footers, while keeping the content area flexible to either scroll or expand based on its content.

You can find my code snippet on this jsfiddle link http://jsfiddle.net/evilbuck/EtQXf/3/

Everything seems to be working fine in Firefox and Chrome, but I'm having trouble with IE10. It doesn't seem to respect the overflow property and content overflows into the section below it.

The idea is for the .content area to take up the remaining space within its parent container and scroll when necessary.

<div class="container">
  <header>A header</header>
  <div class="content">Some content that will overflow or not.</div>
  <footer>A footer</footer>
</div>

.container {
    margin: 10px auto;
    width: 300px;
    height: 350px;

    display: flex;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;

    flex-direction: column;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
}

header, footer {
    border: 1px solid grey;
    height: 30px;
    padding: 5px;
    text-align: center;
    clear: both;
}


.content {
   flex: 1;
   -webkit-flex: 1;
   -moz-flex: 1;
   -ms-flex: 1;
    overflow: auto;
}

Can anyone point out what might be causing the issue in IE10?

Answer №1

Sharing this tip for anyone else who may need it - I discovered that the solution involved using

display: -ms-flexbox;

Here is an updated version of the code in a fiddle: http://jsfiddle.net/EtQXf/4/

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

It is impossible for tailwind to overflow while attempting to adjust the menu to the screen size

Here is the full code snippet: https://jsfiddle.net/3Lapnszc/1/ I am attempting to adjust the left navigation menu on the screen. <main class="flex flex-grow w-full h-screen"> <aside class="w-80 h-screen bg-gray shadow-md w-full hidden sm: ...

The Selenium python tool is reporting that the element at coordinates (X, Y) is not clickable, as another element is blocking it from receiving the click. It's important to note that

Here is a link to an online store that I need to extract information from. Specifically, I am looking to access the Most Helpful, positive, negative, most recent, and certified buyers' sections in order to scrape the values within them. Unfortunately, ...

Border complications in the navigation dropdown menu

I am looking to add borders around the dropdown part of my menu and remove the blue border showing on the right side. The image linked below illustrates the issue I am facing: Here is the code for my navigation menu: <div style="text-align: left;"> ...

Change the value of a cell in a table dynamically with the use of Angular

I am currently developing a web application using Angular 6. Within the HTML template, I have included some code that showcases a specific part of an array within a table cell. It's worth noting that the table is constructed using div elements. <d ...

Challenges arise when working with arrays: Attention required - Offset 0 undefined

I have encountered a challenge with my PHP code. I am attempting to convert an HTML table into an array and then execute a mysqli query, but I am unsure about the process. In my code, I have a variable $aDataTableDetailHTML[][]. The first set of brackets ...

Steps for displaying text underneath a rotating image

In an attempt to display text below a loading image, I encountered alignment issues in different browsers. Screenshots of the layout on Chrome and IE are provided for reference. Below is the HTML code snippet utilized: .LoaderwithText { position: fix ...

jQuery grouping adjacent elements

My content management system allows users to easily insert blocks of content onto a page. These blocks can be of different types and inserted in any order. A sample high-level DOM structure may appear like this: <p>Some rich text</p> <div ...

Spaces ahead and beneath the text

I'm struggling to style a small block of text within its element perfectly. Despite my efforts, there always seems to be unnecessary space in front and below the words. One workaround I found was adjusting the line height to remove the bottom gap, but ...

Styling drop caps using CSS on Wordpress posts

I've successfully implemented a customized dropcap for my Wordpress blog posts using CSS. Is there a way to limit this effect to just the first paragraph, leaving subsequent paragraphs unaffected? Any guidance on achieving this would be highly apprec ...

Arranging text within a button in perfect alignment

Trying to create buttons with icons positioned on the left side, I stumbled upon a useful example online. However, no matter how much I tweak the code, I can't seem to get the text inside the buttons to align vertically. Working within Bootstrap 4 fra ...

How to Filter, Sort, and Display Distinct Records in an HTML Table with jQuery, JavaScript, and

In the HTML page, there will be a total of 6 tabs labeled A, B, C, D, E, and F along with 2 dropdowns. The expected behavior is as follows: The user will choose a value from the 2 dropdown menus. Based on the selected value, filtering should be applied to ...

Tips for preventing the larger background from displaying a scroll on a web page

Specifically tailored for this specific page: I am looking to eliminate the scrollbar at the bottom of the browser, similar to how it appears on this page: Thank you ...

Adjust the color scheme of dygraphs to better suit your needs

Is there a way to change the background color when working with dygraphs in R? I have checked out the CSS options () but couldn't find anything specific for changing the background. The graph will be included in a shiny dashboard, so should I modify ...

Making the switch from lazy-loaded images to `loading="auto"` once the page has finished loading

I'm exploring a new approach to implement lazy loading of images on a CMS (Sitecore) website, and I have some concerns about potential issues that may arise since I haven't come across any examples of this method being used before. The main goal ...

The process of converting RaphaelJS patterns into an SVG format

I am currently creating an interactive map using AngularJS and RaphaelJS. The entire SVG object is generated within a directive, and my goal is to assign different colors to each area on the map. Specifically, I want some regions to have a striped patter ...

Navigating through different templates in {output} with Ember

My first ember app is currently under construction, featuring CRUD operations. Here's a snippet of my index.html code: <script type = "text/x-handlebars" id = "settings"> <table> {{#each setting in controller}} <tr> < ...

Discrepancies in button padding across desktop and mobile platforms

I have created a sample button and included a jsfiddle link to showcase the code. Due to the font properties of the specific font I'm using, I had to adjust the padding values differently for the top and bottom of the text to achieve a vertically cent ...

Is there a way to merge these two webpage controls together?

Seeking advice on how to streamline two controls on a page displaying real-time stock market data before making further changes. The page in question can be found at: (compatible with PC under ff 3.6.13, safari 5.0.3, chrome 9.0.597; not working in IE 6, ...

What are the best ways to creatively design HTML content generated using JavaScript?

I am currently using Squarespace 7.1 to create a website that features a randomly generated quote in the footer section. The quote is generated from a JavaScript array when the page loads, reloads, or changes. Despite the code functioning as intended (test ...

What is the process for configuring my CSS and JS files to send HTTP response headers?

During our security evaluation of a web application built in Laravel 4, we discovered that the Anti-MIME-Sniffing header X-Content-Type-Options was not properly configured to 'nosniff'. The following PHP code snippet sets the necessary HTTP heade ...