CSS grid layout support for IE11











up vote
-1
down vote

favorite












we are trying to develop UI layout using css grid for IE-11, problem here is we have already developed the layout for all the browsers but have not tested on IE11, now we are in last stages of the application and trying to make it work for IE11 but it looks like current css is not working for IE11, so decided to write the separate css for IE11 by browser detection.
here is my mockup mockup (trying to develop without changing the HTML -> if we change the HTML it will effect other browsers)



my question is , if you see the code i am unable to produce the required layout as shown in the mockup with out changing the html structure.






body {
margin: 100px;
}
.box {
background-color: #444;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
margin: 10px;
}

.ie-content {
display: -ms-grid;
display: grid;
grid-gap: 10px;
-ms-grid-columns: 1fr 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr 1fr;
background-color: blueviolet;
color: #444;
}

.ie-viewer {
-ms-grid-column: 1;
grid-column: 1;
background: yellowgreen;
-ms-grid-column-span: 3;
grid-column: 1 / span 3;
}
.ie-viewerControls {
-ms-grid-column: 1;
grid-column: 1;
}
.ie-configure {
-ms-grid-column: 4;
grid-column: 4;
background: red;
height:100px;
}

<div class="ie-content">
<div class="box ie-viewer">viewer</div>
<div class="box ie-viewerControls">viewerControls</div>
<div>
<div class="box ie-configure">configure </div>
</div>
</div>
</div>












share|improve this question
























  • links to codepen must be accompanied by the code in the question itself - please do not ignore the rules of SO
    – Pete
    Nov 8 at 16:58






  • 1




    So.. what is your question?
    – Coffee bean
    Nov 8 at 16:59










  • if you can see the codepen sample am unable to produce the required layout
    – sravan kumar ganji
    Nov 8 at 17:03






  • 3




    Please don't make readers click a link to see the code, and don't circumvent the rules by disguising arbitrary text as code. This is not your first question and not your first that contains code, so there is no excuse for you not to include it in the question.
    – BoltClock
    Nov 8 at 17:11












  • A tip to everyone reading this... always design a web page layout for the oldest browser one need to support.
    – LGSon
    Nov 8 at 17:35

















up vote
-1
down vote

favorite












we are trying to develop UI layout using css grid for IE-11, problem here is we have already developed the layout for all the browsers but have not tested on IE11, now we are in last stages of the application and trying to make it work for IE11 but it looks like current css is not working for IE11, so decided to write the separate css for IE11 by browser detection.
here is my mockup mockup (trying to develop without changing the HTML -> if we change the HTML it will effect other browsers)



my question is , if you see the code i am unable to produce the required layout as shown in the mockup with out changing the html structure.






body {
margin: 100px;
}
.box {
background-color: #444;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
margin: 10px;
}

.ie-content {
display: -ms-grid;
display: grid;
grid-gap: 10px;
-ms-grid-columns: 1fr 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr 1fr;
background-color: blueviolet;
color: #444;
}

.ie-viewer {
-ms-grid-column: 1;
grid-column: 1;
background: yellowgreen;
-ms-grid-column-span: 3;
grid-column: 1 / span 3;
}
.ie-viewerControls {
-ms-grid-column: 1;
grid-column: 1;
}
.ie-configure {
-ms-grid-column: 4;
grid-column: 4;
background: red;
height:100px;
}

<div class="ie-content">
<div class="box ie-viewer">viewer</div>
<div class="box ie-viewerControls">viewerControls</div>
<div>
<div class="box ie-configure">configure </div>
</div>
</div>
</div>












share|improve this question
























  • links to codepen must be accompanied by the code in the question itself - please do not ignore the rules of SO
    – Pete
    Nov 8 at 16:58






  • 1




    So.. what is your question?
    – Coffee bean
    Nov 8 at 16:59










  • if you can see the codepen sample am unable to produce the required layout
    – sravan kumar ganji
    Nov 8 at 17:03






  • 3




    Please don't make readers click a link to see the code, and don't circumvent the rules by disguising arbitrary text as code. This is not your first question and not your first that contains code, so there is no excuse for you not to include it in the question.
    – BoltClock
    Nov 8 at 17:11












  • A tip to everyone reading this... always design a web page layout for the oldest browser one need to support.
    – LGSon
    Nov 8 at 17:35















up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











we are trying to develop UI layout using css grid for IE-11, problem here is we have already developed the layout for all the browsers but have not tested on IE11, now we are in last stages of the application and trying to make it work for IE11 but it looks like current css is not working for IE11, so decided to write the separate css for IE11 by browser detection.
here is my mockup mockup (trying to develop without changing the HTML -> if we change the HTML it will effect other browsers)



my question is , if you see the code i am unable to produce the required layout as shown in the mockup with out changing the html structure.






body {
margin: 100px;
}
.box {
background-color: #444;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
margin: 10px;
}

.ie-content {
display: -ms-grid;
display: grid;
grid-gap: 10px;
-ms-grid-columns: 1fr 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr 1fr;
background-color: blueviolet;
color: #444;
}

.ie-viewer {
-ms-grid-column: 1;
grid-column: 1;
background: yellowgreen;
-ms-grid-column-span: 3;
grid-column: 1 / span 3;
}
.ie-viewerControls {
-ms-grid-column: 1;
grid-column: 1;
}
.ie-configure {
-ms-grid-column: 4;
grid-column: 4;
background: red;
height:100px;
}

<div class="ie-content">
<div class="box ie-viewer">viewer</div>
<div class="box ie-viewerControls">viewerControls</div>
<div>
<div class="box ie-configure">configure </div>
</div>
</div>
</div>












share|improve this question















we are trying to develop UI layout using css grid for IE-11, problem here is we have already developed the layout for all the browsers but have not tested on IE11, now we are in last stages of the application and trying to make it work for IE11 but it looks like current css is not working for IE11, so decided to write the separate css for IE11 by browser detection.
here is my mockup mockup (trying to develop without changing the HTML -> if we change the HTML it will effect other browsers)



my question is , if you see the code i am unable to produce the required layout as shown in the mockup with out changing the html structure.






body {
margin: 100px;
}
.box {
background-color: #444;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
margin: 10px;
}

.ie-content {
display: -ms-grid;
display: grid;
grid-gap: 10px;
-ms-grid-columns: 1fr 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr 1fr;
background-color: blueviolet;
color: #444;
}

.ie-viewer {
-ms-grid-column: 1;
grid-column: 1;
background: yellowgreen;
-ms-grid-column-span: 3;
grid-column: 1 / span 3;
}
.ie-viewerControls {
-ms-grid-column: 1;
grid-column: 1;
}
.ie-configure {
-ms-grid-column: 4;
grid-column: 4;
background: red;
height:100px;
}

<div class="ie-content">
<div class="box ie-viewer">viewer</div>
<div class="box ie-viewerControls">viewerControls</div>
<div>
<div class="box ie-configure">configure </div>
</div>
</div>
</div>








body {
margin: 100px;
}
.box {
background-color: #444;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
margin: 10px;
}

.ie-content {
display: -ms-grid;
display: grid;
grid-gap: 10px;
-ms-grid-columns: 1fr 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr 1fr;
background-color: blueviolet;
color: #444;
}

.ie-viewer {
-ms-grid-column: 1;
grid-column: 1;
background: yellowgreen;
-ms-grid-column-span: 3;
grid-column: 1 / span 3;
}
.ie-viewerControls {
-ms-grid-column: 1;
grid-column: 1;
}
.ie-configure {
-ms-grid-column: 4;
grid-column: 4;
background: red;
height:100px;
}

<div class="ie-content">
<div class="box ie-viewer">viewer</div>
<div class="box ie-viewerControls">viewerControls</div>
<div>
<div class="box ie-configure">configure </div>
</div>
</div>
</div>





body {
margin: 100px;
}
.box {
background-color: #444;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
margin: 10px;
}

.ie-content {
display: -ms-grid;
display: grid;
grid-gap: 10px;
-ms-grid-columns: 1fr 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr 1fr;
background-color: blueviolet;
color: #444;
}

.ie-viewer {
-ms-grid-column: 1;
grid-column: 1;
background: yellowgreen;
-ms-grid-column-span: 3;
grid-column: 1 / span 3;
}
.ie-viewerControls {
-ms-grid-column: 1;
grid-column: 1;
}
.ie-configure {
-ms-grid-column: 4;
grid-column: 4;
background: red;
height:100px;
}

<div class="ie-content">
<div class="box ie-viewer">viewer</div>
<div class="box ie-viewerControls">viewerControls</div>
<div>
<div class="box ie-configure">configure </div>
</div>
</div>
</div>






html css css3 css-grid






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 8 at 17:21

























asked Nov 8 at 16:56









sravan kumar ganji

292313




292313












  • links to codepen must be accompanied by the code in the question itself - please do not ignore the rules of SO
    – Pete
    Nov 8 at 16:58






  • 1




    So.. what is your question?
    – Coffee bean
    Nov 8 at 16:59










  • if you can see the codepen sample am unable to produce the required layout
    – sravan kumar ganji
    Nov 8 at 17:03






  • 3




    Please don't make readers click a link to see the code, and don't circumvent the rules by disguising arbitrary text as code. This is not your first question and not your first that contains code, so there is no excuse for you not to include it in the question.
    – BoltClock
    Nov 8 at 17:11












  • A tip to everyone reading this... always design a web page layout for the oldest browser one need to support.
    – LGSon
    Nov 8 at 17:35




















  • links to codepen must be accompanied by the code in the question itself - please do not ignore the rules of SO
    – Pete
    Nov 8 at 16:58






  • 1




    So.. what is your question?
    – Coffee bean
    Nov 8 at 16:59










  • if you can see the codepen sample am unable to produce the required layout
    – sravan kumar ganji
    Nov 8 at 17:03






  • 3




    Please don't make readers click a link to see the code, and don't circumvent the rules by disguising arbitrary text as code. This is not your first question and not your first that contains code, so there is no excuse for you not to include it in the question.
    – BoltClock
    Nov 8 at 17:11












  • A tip to everyone reading this... always design a web page layout for the oldest browser one need to support.
    – LGSon
    Nov 8 at 17:35


















links to codepen must be accompanied by the code in the question itself - please do not ignore the rules of SO
– Pete
Nov 8 at 16:58




links to codepen must be accompanied by the code in the question itself - please do not ignore the rules of SO
– Pete
Nov 8 at 16:58




1




1




So.. what is your question?
– Coffee bean
Nov 8 at 16:59




So.. what is your question?
– Coffee bean
Nov 8 at 16:59












if you can see the codepen sample am unable to produce the required layout
– sravan kumar ganji
Nov 8 at 17:03




if you can see the codepen sample am unable to produce the required layout
– sravan kumar ganji
Nov 8 at 17:03




3




3




Please don't make readers click a link to see the code, and don't circumvent the rules by disguising arbitrary text as code. This is not your first question and not your first that contains code, so there is no excuse for you not to include it in the question.
– BoltClock
Nov 8 at 17:11






Please don't make readers click a link to see the code, and don't circumvent the rules by disguising arbitrary text as code. This is not your first question and not your first that contains code, so there is no excuse for you not to include it in the question.
– BoltClock
Nov 8 at 17:11














A tip to everyone reading this... always design a web page layout for the oldest browser one need to support.
– LGSon
Nov 8 at 17:35






A tip to everyone reading this... always design a web page layout for the oldest browser one need to support.
– LGSon
Nov 8 at 17:35














1 Answer
1






active

oldest

votes

















up vote
0
down vote













IE 11 has no equivalent for grid-column-gap and grid-row-gap. If you need that, you will have to add fake column/gaps like



-ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr;


On top of that, each and every element in an IE 11 grid must be positioned col/row-wise, otherwise they end up stacking on top of each other in col 1/row 1.



That being said, of course you need to take the fake "gap" columns/rows into account when positioning/spanning elements.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53212576%2fcss-grid-layout-support-for-ie11%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    IE 11 has no equivalent for grid-column-gap and grid-row-gap. If you need that, you will have to add fake column/gaps like



    -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr;


    On top of that, each and every element in an IE 11 grid must be positioned col/row-wise, otherwise they end up stacking on top of each other in col 1/row 1.



    That being said, of course you need to take the fake "gap" columns/rows into account when positioning/spanning elements.






    share|improve this answer



























      up vote
      0
      down vote













      IE 11 has no equivalent for grid-column-gap and grid-row-gap. If you need that, you will have to add fake column/gaps like



      -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr;


      On top of that, each and every element in an IE 11 grid must be positioned col/row-wise, otherwise they end up stacking on top of each other in col 1/row 1.



      That being said, of course you need to take the fake "gap" columns/rows into account when positioning/spanning elements.






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        IE 11 has no equivalent for grid-column-gap and grid-row-gap. If you need that, you will have to add fake column/gaps like



        -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr;


        On top of that, each and every element in an IE 11 grid must be positioned col/row-wise, otherwise they end up stacking on top of each other in col 1/row 1.



        That being said, of course you need to take the fake "gap" columns/rows into account when positioning/spanning elements.






        share|improve this answer














        IE 11 has no equivalent for grid-column-gap and grid-row-gap. If you need that, you will have to add fake column/gaps like



        -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr;


        On top of that, each and every element in an IE 11 grid must be positioned col/row-wise, otherwise they end up stacking on top of each other in col 1/row 1.



        That being said, of course you need to take the fake "gap" columns/rows into account when positioning/spanning elements.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 8 at 21:19

























        answered Nov 8 at 17:09









        connexo

        19.4k63353




        19.4k63353






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53212576%2fcss-grid-layout-support-for-ie11%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Schultheiß

            Liste der Kulturdenkmale in Wilsdruff

            Android Play Services Check