5
Answers

Setting width and Height in percent(%)

Pankaj Singh

Pankaj Singh

15y
5.8k
1
Hi,

I have a Project in Asp.net which have approximate 120 forms. Each of them have multiple controls as Table, Textbox, Dropdown,ListBox,Gridview..nd so on with different different name. I have set the width and Height of all controls as Pixel(px). But now i want to change width and Height in percent(%) of all controls. So there is any quick solution for it or i will have to change one by one controls.

If there is any solution so please help me.

Thanks
 
Pankaj
Answers (5)
0
Kirtan Patel

Kirtan Patel

NA 35k 2.8m 15y
its not recommended to change size in % it may not work on every controls becuase Asp.net standard control only can have width in pixels :)

you can manage the size and Look and Feel of controls by

CSS+ Skin File feature to control all page Style manage From one place   .


if my answer helps you please check "Do you like this answer" :)


0
Anand Uchagawkar

Anand Uchagawkar

NA 2 0 15y
Hey dude,

there is no an easy way so that u can just change the width of all controls to % you will have to manually go on each form & adjust the pixel value according to the corresponding % value. Also just ctrl + h won't help
0
Dipa Ahuja

Dipa Ahuja

NA 4.1k 612.6k 15y
hi..

i also use % in my website first.. then i changed to pixel

bt according to me the pixel setting is better and more flexible than %


0
Pankaj Singh

Pankaj Singh

NA 69 0 15y

Hi,

Have you tried it? Do you know waht is the mean of it?

All the controls will spread out.

Pankaj
0
Gaurish Kumar

Gaurish Kumar

NA 912 0 15y
Hi

U can use find and replace.

press ctrl + h

and replace px to %

it will replace all.