74: How do I center a div?

The CSS Podcast - A podcast by The CSS Podcast

Categories:

In this episode we tackle one of the most asked questions of all CSS history.. how do I center this div? We'll cover multiple strategies that each have tradeoffs and super powers over each other.    Links: Centering in CSS → https://goo.gle/3RRki02  Comparing grid and flex place-items and place-content → https://goo.gle/3ZE3NGM  Centering in CSS: A Complete Guide → https://goo.gle/46xudw7  Centering examples from Una → https://goo.gle/3rF7lvR    Una Kravets (co-host) Twitter | Instagram | YouTube Making the web more colorful ✨🎨  Web DevRel @googlechrome Unicorn face host of @toolsday & Designing in the Browser 🎬    Adam Argyle (co-host) Twitter | Instagram | YouTube @GoogleChrome CSS DevRel; @CSSWG; VisBug maker; punk; CSS/JS/UX addict; 💀🤘   Catch more episodes → https://goo.gle/CSSpodcast   Subscribe to Google Chrome Developers → https://goo.gle/ChromeDevs