Click to See Complete Forum and Search --> : plz help me. It's so simple


ujjwalmeshram
January 30th, 2008, 08:38 AM
Hello everybody,
I m new in asp.net. I m designing a form in which some textboxes, labels and one button is there. I designed the form by using drag and drop control from toolbox.
It runs perfectly but when i change the text size of my browser, the controls get moved from there original position

What shoud I do to keep the position of all controls static after changing text size or screen resolution etc.


If u have any suggestions or ideas plz share with me.

Thank u

yell0wdart
January 30th, 2008, 09:45 AM
So, is this happening when you're testing them in the browser?

If so, you should be able to prevent that from happening via CSS. Defining text sizes in a stylesheet should keep those sizes static.

If you're looking to keep their placement on the page static, you may need to use absolute positioning. Place your controls in <div> tags and set positioning of those div id's to absolute. You can then define specific positions and alignments within the browser.

http://www.w3.org/TR/WD-positioning-970131

nabeelisnabeel
February 6th, 2008, 03:51 AM
learn about 'Dock' and 'Anchor' properties of controls.