0

The following is the code for a simplw web page designed in Visual Studio.net, and I want to know how to align the web page automatically in the screen where the resolution is higher then 800x600. Please help me.

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="sainikimphal.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<title>WebForm1</title>
	<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
	<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
	<meta name="vs_defaultClientScript" content="JavaScript">
	<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
	<form id="Form1" method="post" runat="server">
		<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 8px; WIDTH: 594px; POSITION: absolute; TOP: 8px; HEIGHT: 229px" cellSpacing="1" cellPadding="1" width="594" border="1">
			<TR>
				<TD>This is a simple web page</TD>
			</TR>
		</TABLE>
	</form>
</body>
</HTML>
2
Contributors
1
Reply
3
Views
9 Years
Discussion Span
Last Post by ericstenson
0

Screen width will require client side calls, I think. I haven't done it, but that is my understanding. I think VS2008 adds some features, like the tables in it are a % of the client browser, rather than a fixed width.

If you are just looking to center your page, I have found the easiest way is to drop a table on the page, use the style to center the table, and it's finished.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.