Click here to Skip to main content
15,922,155 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Please suggest me the solution . thanks in advance.
Posted

You need to make your Website Responsive.

Please go through my previous answers.
1. responsive website development[^]
2. design issue to be considered for web application on touch screen[^]
 
Share this answer
 
You can set the Parent Div's width to 100 % so it will fit to different resolutions.

Other option can be using Media Queries.

multiple-media-queries-for-different-screen-sizes[^]

http://css-tricks.com/snippets/css/media-queries-for-standard-devices/[^]

http://htmldog.com/guides/css/advanced/mediaqueries/[^]
 
Share this answer
 
v2
Comments
Razeep Mohammed 23-Jul-18 2:11am    
I developed a web page in ASP.Net (C#) using visual studio 2010. In my machine screen resolution is 900*1600, i designed according to this resolution, so when i run the page i have no problems in viewing it.
But when i run the page in someother machine with different screen resolutions like (1024*768), there are some changes in the allignment of the text boxes and labels in the page.And also changes in alignment of controlls in wepage such as text boxes,labels and buttons when i try to minimize or maximize the page size.
May i know how to set the page according to different screen and all formats(maximize and minimize the screen) resolutions automatically? I need to view the page same as i look in my machine. How to do that? Could anyone please guide me to do that?
XML
Just use percentage based layouts rather than pixels or other measurements.
<img width="50%">: that will fill half of the screen, at any size
<img width="500px">: that will always fill exactly 500 pixels, if it's too big or if it's too small.


It is also theoretically possible to design a website using pixels and adjust it using Javascript to scale, but that is the same as using percentages (in how it looks) and MUCH harder to do. It also is unreliable. Basically, a good web designer won't need to do that.
 
Share this answer
 
<script type="text/javascript">
function TableHeight()
{
if (typeof (window.innerWidth) == 'number')
{
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
}
else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
{
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
}
else if (document.body && (document.body.clientWidth || document.body.clientHeight))
{
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
document.getElementById('ctl00_TopPanel').style.height = (myHeight - 140) + 'px';
}
</script>

Used above code for solving problem
Used id of my form in place of ctl00_TopPanel'.
 
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