Click here to Skip to main content
15,905,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir
I want a exactly fit asp page in any size screan and in all browsers.
wtat we should do.
Posted
Updated 27-Dec-11 17:44pm

set width of table as 100%. width="100%". set width in percentage for all elements in HTML page.
 
Share this answer
 
v2
Comments
thatraja 28-Dec-11 8:19am    
5!
If you want it, you are on a wrong path in principle. If you use CSS and right styles, your page stretched to the size of the window client width maintaining reasonable good-looking and well-readable proportions between columns and other elements by itself. You need to use style properties like width:100% and similar things. Learn CSS, box model and layout properties. You just need to learn appropriate styles, peculiarities of the elements you want to use and practice, possibly with different Web browsers. Consult http://www.w3.org/Style/CSS/[^].

A personal advice from me, based on my taste: keep it more simple. The user wants clear readability and informative content, not decorations.

—SA
 
Share this answer
 
v2
Comments
thatraja 28-Dec-11 8:21am    
5!
Sergey Alexandrovich Kryukov 28-Dec-11 17:46pm    
Thank you, Raja.
--SA
Espen Harlinn 28-Dec-11 12:30pm    
Agree
Sergey Alexandrovich Kryukov 28-Dec-11 17:46pm    
Thank you, Espen.
--SA
Monjurul Habib 28-Dec-11 14:56pm    
5!
Use liquid layout[^] & check this site http://www.cssliquid.com/[^]
 
Share this answer
 
Comments
Espen Harlinn 28-Dec-11 12:31pm    
interesting site :)
Monjurul Habib 28-Dec-11 14:56pm    
5!
every element in asp page set width=% and height=% 
do not use pixes like width=100px height =100px percent takes  automatically fit in screen sizes.
 
Share this answer
 
Hi raghubansh kumar

If you want fit asp page in any size screen then in body of .css file

use following syntax

body
{
margin :0px;
}

If you use width="100%" in table then also it set some gap in between browser borders and website.

Hence use "margin" in stylesheet.

It will working fine....
 
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