How to set default value to align content in CSS ?
In this article, we will learn how to set the default value to align content to its default value in CSS. The align-content property is used to align content within a specified container.
Approach: The normal value of the align-content property is used to set default value in CSS. It sets its default value to initial which is stretch for align-content property according to flexbox specification.
The below example demonstrates the above approach.
Example: If the default value of align-content property is set to normal value.
Output: All the four items inside the box are aligned to normal value which is stretch in CSS flexbox.
- Google Chrome 21.0
- Internet Explorer 11.0
- Firefox 28.0
- Opera 12.1
- Safari 9.0