@rishat-se
Posted
Hello Martin,
Great Job! As for justify-self: flex-end. Flexbox do not support this command. When you applied flex-direction: column to the flex container, you turned Main axis of flex container downwards and the only align command that Flex supports along the Main axis is justify-content.
I have tested how to fix your issue with button alignment. One of the options I have found is to apply flex-grow: 1 to the paragraph element inside your flex container. That way paragraph element will take all the free space that appear when text wraps and push button element to the bottom.
Hope it will help. Have a nice day!
@TheMrBombastic
Posted
@rishat-se I didn't think of flex-grow, that might be an option, thanks!
There also appeared this strange behaviour when i use margin:0 auto; which should normally work in this situation (i read it online) but it just works somehow when i type it directly in the browser inspect funtion. Not on visual studio codde. That makes no sense to me :D