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 (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>
html css css3 css-grid
add a comment |
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 (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>
html css css3 css-grid
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
add a comment |
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 (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>
html css css3 css-grid
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 (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
html css css3 css-grid
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Nov 8 at 21:19
answered Nov 8 at 17:09
connexo
19.4k63353
19.4k63353
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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