@Junbol
Posted
Hi Arun, The issues with your project is the use of Flexbox. Here is the code fixed and then an explanation on the comments:
#outer {
display: flex;//๐ฉFlexbox!!!!!
flex-direction: column;//๐ฉ
align-items: center;//๐ฉ
** margin: 0 auto;**//๐ฉ
/* margin-top: 160px; */ you don't need this code
/* margin-left: 550px; */you don't need this code
height: 430px;
width: 295px;
background-color: white;
border-radius: 10px;
}
<img src="./image-qr-code.png" alt="qrcode"><!-- ๐ฉ a 'dot' is added before the '/' -->
Here are some tips: Flexbox: Iโm sure you use 3wschools to refresh stuff. But these two new kids on the block are really great:
- [Flexbox Webdev] (https://web.dev/learn/css/flexbox)
- [Flexbox Css Tricks] (https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
- [Flexbox Josh] (https://www.joshwcomeau.com/css/interactive-guide-to-flexbox/)
Keep going!
Cheers
Junier
Marked as helpful
@arun81302
Posted
THANK YOU FOR CORRECTING ME @Junbol
@Junbol
Posted
no problem!