TetiLy / prj-rev-bwfs-tea-cozy

0 stars 0 forks source link

flex-direction: row not necessary for locations #3

Open jzhu01 opened 7 years ago

jzhu01 commented 7 years ago

Seen here: https://github.com/TetiLy/prj-rev-bwfs-tea-cozy/blob/master/TeaCozy/resources/css/style.css#L107

This doesn't affect the display. I think it's alright to remove it! ^_^

TetiLy commented 7 years ago

When I remove flex-direction, it is Ok. But I thought that then there would be no need in display: flex. But when I delete it is messes up the position of the location content. Why that? Should I keep display: flex?

jzhu01 commented 7 years ago

Sure! Sorry for the delay in responding - I believe this link will be useful in explaining the differences between all the flex properties and their attribute.

https://css-tricks.com/snippets/css/a-guide-to-flexbox/

I would recommend keeping display: flex, because ultimately flex-direction and display: flex are not the same properties and do not do the same thing.