Friday 30 December 2016

html - Difference between justify-content vs align-content




I am using both justify-content and align content in the flexbox. what is the difference between them????


Answer



Justify-content: The justify-content property aligns the flexed container’s contents on the main axis, which by default(in case of the web) is the horizontal axis.



align-content: The align-content property aligns a flex container’s lines within the flex container when there is extra space on the cross axis.



For more info on this, visit this link- https://css-tricks.com/snippets/css/a-guide-to-flexbox/


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...