Is there a way to make the width of the page, or an element within the page only change by a certain amount depending on the width of the screen?
For example, I have a white box with 6 items in. Each item is its own box and has a blue background with a set width. On a small resolution, there is 3 items per line within the white box but on a higher resolution, there may be more. What I want to do is minimise the white space and the best way I can think of is to make it so the white box only expands when the screen width reaches a certain increment of an initial size. For example, it'll expand when the browser is 100px, 200px etc. rather than expand as the browser is adjusted.
Another idea I had was to make it so the white space between each item expands equally (like with text-align: justify;
) but I can't figure out a way to do this either as using that just justifies the text within each item.
Any help will be appreciated.