This is the html
<div class="main_content">
<section class="episodio">
<article class="contenedor_episodios">
<h2>Episodios</h2>
<div class="episodio_spotify">
<iframe
src="https://open.spotify.com/embed-podcast/show/2ySVrxGkN6n6frMTo9Nsrt"
width="100%"
height="225"
frameborder="0"
allowtransparency="true"
allow="encrypted-media"
></iframe>
</div>
<div class="episodio_spotify">
<iframe
src="https://open.spotify.com/embed-podcast/show/4kYCRYJ3yK5DQbP5tbfZby"
width="100%"
height="225"
frameborder="0"
allowtransparency="true"
allow="encrypted-media"
></iframe>
</div>
<div class="episodio_spotify">
<iframe
src="https://open.spotify.com/embed-podcast/show/5JxcIaIkN8zx3Zy7yD9snv"
width="100%"
height="225"
frameborder="0"
allowtransparency="true"
allow="encrypted-media"
></iframe>
</div>
<div class="episodio_spotify">
<iframe
src="https://open.spotify.com/embed-podcast/show/2Iibd5A6R7mxkCm4NwNmUn"
width="100%"
height="225"
frameborder="0"
allowtransparency="true"
allow="encrypted-media"
></iframe>
</div>
</article>
</section>
</div>
And this is the CSS for this piece of code.
.main_content {
.episodio {
grid-area: auto;
padding-bottom: 100px;
background: linear-gradient(#0000ff, #0000a3);
.rectangle_background {
.contenedor_episodio {
display: grid;
// justify-items: center;
grid-template-columns: auto auto;
.episodio_spotify {
width: 500px;
height: 300px;
margin: 0 auto;
display: flex; /* new */
align-items: center; /* new */
justify-content: center;
//grid-template-columns: repeat(auto-fit, minmax(400px, 2fr));
iframe {
width: 100%;
height: 100%;
}
}
}
}
}
}
Im tried different solutions to center this Iframes based on this question
but I can't center the title Eposidios or the spotify Iframes.
Could someone please give an advice of what I'm missing?.
Regards
EDIT:
Im using a css query and for the mobile view is working fine i think the problem is that it keep taking the css code of the mobile view of 360 px
@media screen and (min-width: 1024px) and (max-width: 1440px) {