Hey guys, in today's video, we're diving into the world of HTML and CSS! Join me as we tackle a coding challenge together. Can you fix this code? We'll go step by step, analyzing the code and making necessary adjustments to get it working perfectly.
The Question:
Below is a CSS code snippet intended to center a div element both vertically and horizontally within the viewport. However, it is not working as expected. Can you identify the problem in the code? What is the problem in the CSS code, and how can it be fixed to ensure that the div with the class container is centered vertically and horizontally within the viewport?
-----------------------------------------------------------------------------
BUY ME A COFFEE: https://buymeacoffee.com/fannynyayic
BECOME A MEMBER: / fannyn
Resources:
MERCH: https://the-code-chic.creator-spring....
SUBSCRIBE TO MY NEWSLETTER: https://fanny.hashnode.dev/newsletter
Learn how to Freelance with your Skills: / @fannynyayic
Host your website with Bluehost: https://bluehost.sjv.io/P07bjY
Website Themes, Plugins & Resources: https://1.envato.market/VyzGb6
----------------------------------------------------------------------------
Let's be Social Media Besties
Twitter: / fanny_codes
Instagram: https://www.instagram.com/fanny_nyayi...
Facebook: / fannyn.nyayic