web form design - positioning and sizing
Is there a better way to do this?
I just realized that I need to use percentages to set the width, height, left and top properties of my web controls to make my pages fit any browser window size at any screen resolution. But I have two problems:
1. Left and Top (the positioning attributes) are only available in HTML view. Can't I get these in the properties window so I can just quickly click through my form? It will take quite a while to position a lot of elements by altering tags in the HTML view. And without seeing the form, there will be a lot of trial and error.
2. Will the look of the page be silly if I use ONLY percentages? When a really small browser is opened you would see a tiny page perfectly in proportion to the window.
Re: web form design - positioning and sizing
Quote:
Originally posted by soskinny
Is there a better way to do this?
I just realized that I need to use percentages to set the width, height, left and top properties of my web controls to make my pages fit any browser window size at any screen resolution. But I have two problems:
1. Left and Top (the positioning attributes) are only available in HTML view. Can't I get these in the properties window so I can just quickly click through my form? It will take quite a while to position a lot of elements by altering tags in the HTML view. And without seeing the form, there will be a lot of trial and error.
2. Will the look of the page be silly if I use ONLY percentages? When a really small browser is opened you would see a tiny page perfectly in proportion to the window.
Something escapes me. Why are you using left and top for your controls? Are you using absolute positioning?
You really don't need to. You can create a table, and multiple-nested tables if required, for the purpose of positioning your elements.
Without seeing the form, it will be trial-and-error only at first. Soon, you'll be good enough so that you don't even need to look at the page that often.