Hi everyone, I just finished the CSS FlexBox section and I was very excited to test out my new knowledge, after an google search I stumbled upon this image
Well looks good to me, except that the units are absolute, try to use relative. Also, the design ain’t responsive which you will learn further in the curriculum, Keep Coding!
Firstly in the second row (div.main containing Aside and Article) since extra space is in between Aside and Article, use justify-content: space-between;
main {
justify-content: space-between; /* To put extra space in between Aside and Article */
margin: 0 auto; /* Centre horizontally */
width: 80%; /*Match with the width of Header*/
}
Aside width 30% looks better I hope.
aside {
width: 30%
}
Article block needs some padding so that the images are more separated as in the picture.
article {
padding: 1em;
}
Lastly, for codepen, should put css in the CSS block given. It also helps readability and debugging.