How to Center Instagram Embed with CSS Flexbox
Based on MDN documentation, using center tag to centering element no longer recommended. This tag has been deprecated in HTML 4.
Centering item with
<div align="center"> is also not recommended. Based on MDN documentation, the align attribute is obsolete.
So, if you want to center Instagram embed please avoid using
center tag or
<div align="center">, use CSS flexbox instead.
CSS to Center Element
Before centering Instagram Embed
After centering Instagram Embed
- Register to Digital Ocean cloud with this link and get $200 credit
- Looking for cheap CDN? Bunny is the answer
- Alternative Cloud besides AWS and Digital Ocean