0

I'm building a Service Portal in ServiceNow and am having issues with bootstrap card decks rendering correctly in IE 11. ServiceNow actually doesn't even support boostrap4, so our team hacked it by copying and pasting the back-end CSS and then replacing the class names from "card" to "wrap". Below is a screenshot of what it looks like in Chrome, Firefox, etc.

enter image description here

Below is what the same exact thing looks like in IE11:

enter image description here

Not only are the images a bit stretched out, but more importantly, the Service Portal row doesn't seem to recognize it and the rows below it overlap. I'm fairly certain it is because Service Portal does not recognize flexboxes.

Below is our CSS code:

@media (min-width: 576px) {
    .wrap-deck {
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-flow: row wrap;
        -ms-flex-flow: row wrap;
        flex-flow: row wrap
    }
    .wrap-deck .wrap {
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-flex: 1;
        -ms-flex: 1 0 0%;
        -webkit-flex: 1 0 0%;
        flex: 1 0 0%;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column
    }

  .wrap, .wrap > span, .wrap > span > div {
            display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-flex: 1;
        -ms-flex: 1 0 0%;
        -webkit-flex: 1 0 0%;
        flex: 1 0 0%;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column 
  }

Has anyone experienced this? Does anyone have a solution?

Dave
  • 1,257
  • 2
  • 27
  • 58
  • *I'm fairly certain it is because Service Portal does not recognize flexboxes.* But you appear to be saying that it works in Chrome and FF. – Michael Benjamin Mar 27 '17 at 21:35
  • These posts may help: [**ONE**](http://stackoverflow.com/q/33975539/3597276) | [**TWO**](http://stackoverflow.com/q/32239549/3597276) – Michael Benjamin Mar 27 '17 at 21:36
  • yea my bad, it definitely works great in Chrome/Firefox...it only doesn't work in IE. – Dave Mar 27 '17 at 21:38

0 Answers0