I am currently working on a webpage and I have achieved fitting it in the whole browser window by using percentage(%) values in the width and height properties of my css. The problem now is that when I resize the window, everything gets scrambled and distorted (e.g labels,links, etc.) Is there a way to have a minimum height and width so as when the window is resized, there is a limit those properties to prevent the layout being distorted?
Thanks is advance!
You actually answered the question yourself. You can use the CSS properties
min-widthandmin-heightto set minimum width and height, respectively, for a block level element like a container.A better solution would be to use responsive design, though, which will continually adjust itself as the window grows and shrinks.