How to set a max-width as percent AND pixels? March 26, 2023 by Tarik width:20%; max-width:100px; This sets the width to 20% but caps it at 100 px.