Programming Tips - css: Here is a way to do max-font-size

Date: 2020apr10 Language: css Platform: web Q. css: Here is a way to do max-font-size A. Cascading Style Sheets do not have a max-font-size property but you can use max()
.myclass { font-size: 2em; max-font-size: 30px; /* Does NOT WORK */ } .myclass { font-size: max(2em, 30px); /* DOES work */ }