Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to Set web page according to screen in asp.net(C#)
I m Working with Web Application
(I want my controls auto resize according to screen )
Posted
Comments
Zubair Alie 17-Oct-11 9:38am    
set width in percentage

Use fluid layout. There are a lot of exemple on web, just google it (CSS Fluid layout).

i.e. :

http://coding.smashingmagazine.com/2009/06/02/fixed-vs-fluid-vs-elastic-layout-whats-the-right-one-for-you/[^]
 
Share this answer
 
v2
Comments
RaviRanjanKr 17-Oct-11 10:09am    
Just did minor Editing of your answer to correct spelling.
Yuri Vital 17-Oct-11 10:36am    
thank you RaviRanjankr !
You should design your web page to be size-independent, to the highest possible degree. That generally means having a content region in the middle of the page which is not fixed width, and which expands to fill the available space. You can do this by just flowing content into a <div>, and have the other parts (e.g. navbar) set to float=left/right.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900