Click here to Skip to main content
15,887,945 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello
i design a web site by asp.net.
in some monitors the with of my web site is little. the left and right of screen is blank.
how can i set it to standard size?
thanks

What I have tried:

i don't know to use a process to test it in another size
Posted
Updated 24-Oct-18 5:33am

1 solution

There is no such thing as a "standard size".

You don't need the width of the screen. You need the width of the browser's client area, which is easily handled in CSS.

Google for "Responsive Web Design[^]" and start reading.

But, keep in mind that you don't want your site to span the entire width of the browser in all situations. Someone who has their browser full screen on a super-side monitor is going to make your site look really silly if you try to keep your site glued to the sides of the browser. You really should support a maximum width with empty bars on both sides, to keep your site looking nice.
 
Share this answer
 
v2

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