Good day everyone! I just started learning flex box. I applied the align item: stretch property and it gave me the expected outcome. I deleted the style immediately from my CSS so I could proceed with my lesson but the browser still kept behaving like I still have the align-item: stretch property.
I have deleted my browser cache/data, loaded using different browser but it's still giving me the same problem. I'm almost frustrated, please help me. I'm currently using Chrome browser.
Here is what I got for you. So I have an example below which should explain exactly why you have this issue, but let me give you an exlaination of my code.
containerandcontainer1shows that stretch is the default behaviour of flexbox, so even if you deleted the code nothing will happen.container3-reverse-axisshows you what the example I gave looks by default with stretch if you reverse the axis.container3-flex-endshows you what happens if you set it now to anything else likeflex-end.container4-defaultandcontainer4-justifyshows you what you probably are looking for and expected to happen in the first place.Here is a great website that explains flex box in a lot of detail.