I try to align a box in which I use FlexBox and I have it well aligned in all the browsers I have tried (Chrome - Firefox - Opera).
But in internet explorer 11 (edge without problems) I align the box to the right, as if I did not recognize the size or margin.
I have the following HTML code
.intro-foto{
width:100%;
height:auto;
min-height: 500px;
margin:0 auto 90px auto;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
/*background-attachment: fixed;*/
background-attachment: scroll;
display:flex;
display:-webkit-flex;
display:-moz-flex;
display:-ms-flexbox;
display:-o-flex;
justify-content: center;
-webkit-justify-content: center;
-moz-justify-content: center;
-ms-justify-content: center;
-o-justify-content: center;
align-items: center;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
-o-align-items: center;
}
.intro-texto{
width:100%;
flex:0 1 100%;
-webkit-flex:0 1 100%;
-moz-flex:0 1 100%;
-ms-flex:0 1 100%;
-o-flex:0 1 100%;
margin:0 auto;
max-width: 600px;
}
<section class="intro-foto">
<article class="intro-texto">
<h2 class="titulo-intro">Bienvenidos a nuestra web</h2>
<div class="separator-intro"></div>
<div class="texto-intro"><p>Lore ipsum et dolor...</p>
</div>
</article>
</section>
I have made several attempts and removing the max-width moves it to the center but with that property nothing, I move it to the right without having any type of block or anything before.