What causes IE 10 to push the content beyond the viewport?

Has anyone encountered an issue with two buttons on the right side of the screen getting pushed out of view in IE10? If so, how can this be resolved?

When viewed in Chrome, the layout appears as expected:

In IE10, however, the buttons are off to the side and not visible, without even a scrollbar present:

View live example on jsFiddle

HTML:

<div class="section-header">
    <div tabindex="0" class="section-toggle section-toggle-up" role="button" aria-pressed="false">
        <input type="text" tabindex="-1" role="presentation" style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;">
        <div class="html-face">Reader 1</div>
    </div>
    <div class="section-header-widgets">
        <div tabindex="0" class="slider slider-up" role="button" aria-pressed="false">
            <input type="text" tabindex="-1" role="presentation" style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;">
            <div></div>
        </div>
        <div class="buttonContainer">
            <div class="sidebuttons">
                <button type="button" class="removeButton"></button>
                <button type="button" class="exportButton"></button>
            </div>
        </div>
    </div>
</div> 

CSS:

.section-header, .section-header-widgets {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    display: -ms-flexbox;
    -ms-flex-direction: row;
    -ms-flex-align: center;
    -ms-flex-pack: start;
}

.section-header-widgets {
    width: 100%;
}

.section-toggle {
    min-height: 50px;
    background-repeat: no-repeat;
    background-position: left;
    padding-left: 2.5em;
    font-weight: bold;
    line-height: 2.5em;
    max-height: 2.5em;
    cursor: pointer;
}

.section-toggle-up {
    min-width: 200px;
}

.slider {
    background-repeat: no-repeat;
    background-position: left;
    height: 34px;
    width: 65px;
    margin-left: 3em;
    cursor: pointer;
    border: 1px solid black;
}

.buttonContainer {
    flex: 1;
    -ms-flex: 1;
    text-align: right;
}

.addButton, .removeButton, .exportButton, .openFileButton {
    height: 40px;
    width: 40px;
    padding: 0;
    border: 1px solid black;
    cursor: pointer;
    margin-right: 20px;
}

Answer №1

Internet Explorer 10 seems to have some issues with Flexbox support. To make it work properly, you can follow these steps:

  • Remove the width: 100%; from the .section-header-widgets class
  • Add flex-grow: 1; and -ms-flex: 1 0; to the .section-header-widgets class

    .section-header, .section-header-widgets {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    display: -ms-flexbox;
    -ms-flex-direction: row;
    -ms-flex-align: center;
    -ms-flex-pack: start;
    }
    
    .section-header-widgets {
        /*Removed
        width: 100%;*/
        /*Added*/
        flex-grow: 1;
        -ms-flex: 1 0;
    }
    
    .section-toggle {
    min-height: 50px;
    background-repeat: no-repeat;
    background-position: left;
    padding-left: 2.5em;
    font-weight: bold;
    line-height: 2.5em;
    max-height: 2.5em;
    cursor: pointer;
    }
    
    .section-toggle-up {
    min-width: 200px;
    }
    
    .slider {
    background-repeat: no-repeat;
    background-position: left;
    height: 34px;
    width: 65px;
    margin-left: 3em;
    cursor: pointer;
        border: 1px solid black;
    }
    
    .buttonContainer {
    flex: 1;
    -ms-flex: 1;
    text-align: right;
    }
    
    .addButton, .removeButton, .exportButton, .openFileButton {
    height: 40px;
    width: 40px;
    padding: 0;
    border: 1px solid black;
    cursor: pointer;
    margin-right: 20px;
    }
<div class="section-header">
<div tabindex="0" class="section-toggle section-toggle-up" role="button" aria-pressed="false">
<input type="text" tabindex="-1" role="presentation" style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;">
<div class="html-face">Reader 1</div>
</div>
<div class="section-header-widgets">
<div tabindex="0" class="slider slider-up" role="button" aria-pressed="false">
<input type="text" tabindex="-1" role="presentation" style="opacity: 0; height: 1px; width: 1px; z-index: -1; overflow: hidden; position: absolute;">
<div></div>
</div>
<div class="buttonContainer">
<div class="sidebuttons">
<button type="button" class="removeButton"></button>
<button type="button" class="exportButton"></button>
</div>
</div>
</div>
</div>

Link to JS Fiddle for reference

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

Managing Variants in SCSS with BEM Approach: A Comprehensive Guide

Trying to solve a frustrating issue with BEM can be quite the challenge. I currently use the BEM methodology for developing UI elements in my application. For example: <div class="card"> <h2 class="card__title">S ...

waiting to display information until it is necessary

I am currently working on optimizing my website for improved loading speed and responsiveness. Users can scroll through up to 4k images, apply filters, and sort them based on their preferences. Below is the code snippet for my filtering function: function ...

Remove the gray border from anchor elements when they are in focus

I'm struggling to remove the unattractive grey border that surrounds anchor tags. The CSS property outline:none; eliminates it in Firefox, but how can I achieve the same effect in IE? Ideally using CSS expressions or jQuery. Accessibility is not a con ...

There seems to be some odd behavior with the page design

When you visit my website at lookaroundyou.net and select USA (where there are more videos than any other section), the entire layout of the website transforms. Can anyone explain why this sudden change occurs? ...

Having trouble making the menu stay at the top of the page in IE7

Check out the demo here: http://jsfiddle.net/auMd5/ I'm looking to have the blue menu bar stay fixed to the top of the page as you scroll past it, and then return to its original position when scrolling back up. This functionality works in all brows ...

Python web scraping for IMDb data

I am currently working on analyzing data from a previous Harvard CS 109 course and I'm having trouble extracting the ratings from the top 250 most voted movies in the dataset. It seems like there are two instances of td.ratingColumn, one containing th ...

Aligning characters according to Unicode standards

I'm looking to showcase a Unicode character at the center of a button. Below is the code snippet: <div class="col-xs-1"> <button class="btn btn-tool"> <span></span> </button> </div> span:before { ...

Tips for adjusting the vertical position of an image within a bootstrap column by a small amount

Apologies in advance if this question has already been addressed, and I am struggling to adapt it to my specific scenario. My objective is to adjust the positioning of the two images shown in the screenshot example below so that they align with the grey b ...

Is there a way to align text horizontally with one word in the center and the other word on the right side?

Is it possible to center align one word and right-align another on the same line of text? [ [One word centered] [Second word aligned to the right]] ...

Tips for concealing table columns on a mobile screen

I could really use some assistance with a challenging situation. I am currently working on a WordPress website project and using the "Table Maker" plugin to display detailed information in a table format. The desktop view of the table includes 7 columns, ...

setting different iframe widths for desktop and mobile views

I am working with an iframe and facing a challenge. I want to make it full screen width on mobile devices, but only half the screen width on a normal monitor (100% and 50%, respectively). The minimum specification for the mobile device would be iPhone, alt ...

Tips for perfectly aligning heading both horizontally and vertically

https://i.sstatic.net/8ttSh.png https://i.sstatic.net/vSsH5.png My website has a header with text that I want to center both horizontally and vertically. I am currently using the 'text-center' class in Bootstrap 4, which centers the text but onl ...

What could be causing the 'srcset' attribute to malfunction on this webpage?

I've been working on a project to create a website and I'm trying to implement the 'srcset' attribute to display different image sizes based on device. Here's how I have set up my image in the code: <img srcset="imag ...

After releasing the project, CSS fails to load properly

After creating a website in Visual Studio and deploying it in IIS, I encountered an issue where the CSS was not loading when trying to access the site. I followed some advice to update the path of the CSS file location, but that didn't resolve the pro ...

What is the best way to completely eliminate a div from a webpage

I've created a new div element using jQuery: $(document.body).append('<div id="test"></div>'); Then, I display a success message and remove the div after 10 seconds: $('test').html('SUCCESS!'); setT ...

Tips for centering the search popup in jqgrid

Having trouble centering the Search popup in my jqgrid. Every time I click on the search button in jqgrid, the Search popup appears at the beginning of the grid. $(document).ready(function(){ //jqGrid $("#usersList").jqGrid({ ...

Troubleshooting issue markers for q-field component paired with q-input in Quasar Framework

I have a couple of inquiries regarding the error-labels of q-field (in conjunction with q-input) while utilizing the Quasar Framework: How can I prevent the button below from moving further down when the error-label is displayed? When using vuelidate f ...

What is the best way to identify the top and bottom row currently visible in a scrollable HTML table using JavaScript and VueJS?

In my HTML table, there is a thead and tbody sections, with an unpredictable number of rows in the tbody based on the array size. This table has a max-height and can be scrolled. I want to be able to accurately calculate the new top and bottom rows displa ...

Issue with Website Rendering: Safari 4 exhibits display glitch showing temporary content before showing a blank white screen

Currently, I'm in the process of developing a specialized rails application. However, there seems to be an unusual rendering error that has been reported by Safari 4 users. It's quite peculiar because the page appears briefly but quickly disappea ...

Creating a PDF report from a JSP page: Step-by-step guide

I'm experiencing difficulty generating the PDF report from this JSP page. While I can create the form in a .pdf format, it's not opening correctly in Adobe Reader. <% //response.setCharacterEncoding("utf-8"); //response.setHeader("Content-Tr ...