The example usage of minmax () function in css
This article mainly introduces "the example usage of the minmax () function in css". In the daily operation, I believe that many people have doubts about the example usage of the minmax () function in css. The editor consulted all kinds of materials and sorted out the simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about the example usage of the minmax () function in css. Next, please follow the editor to study!
Description
1. The minmax () function creates the minimum or maximum size of a row or column.
2. The first parameter defines the minimum value of the grid orbit, and the second parameter defines the maximum value of the grid orbit.
You can accept any length value, as well as an auto value. The auto value allows mesh tracks to stretch or squash based on the size of the content.
Example
. grid-container {padding: 20px; display: grid; grid-template-rows: minmax (100pxMagol 200px) minmax (50pxMagol 200px); grid-template-columns: 1fr 1fr 2fr; background: pink; height: 300px;} at this point, the study of "the example usage of the minmax () function in css" is over, hoping to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!