If you’ve ever shrunk down your browser window, you’ll notice that the webpage content shrinks down to some extent and then scroll bars start appearing. How is that done in CSS?
If you’ve ever shrunk down your browser window, you’ll notice that the webpage content
Share
If I understand your question correctly, you are looking for the
min-widthproperty instead of a fixedwidth, so that the content can shrink down to a certain size.This would create an element that is 30% the width of its parent, and will shrink as you make your window smaller, untill the element reaches 100px, then it stuck on that width.