473,411 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Viewing in Browser

Hi Gang,

How do you center an ASP.NET 2.0 website in the browser window? My website
is 800 px wide and it renders to the left in all the browsers.

Thanks.

Steve
Sep 10 '06 #1
2 1080
This has nothing to do with ASP.NET. It has to do with fundamental web page
design. If your target audience is the 800 x 600 crowd, and you want your
content centered within the 800, you should make a one row by one column
table that is 760 pixels (not 800: subtract 40 pixels for the built-in
browser scroll bar) wide and center the table. Then just put your entire
web page content inside that one celled table.

"Uriah Piddle" <st*************@msn.comwrote in message
news:uo**************@TK2MSFTNGP04.phx.gbl...
Hi Gang,

How do you center an ASP.NET 2.0 website in the browser window? My website
is 800 px wide and it renders to the left in all the browsers.

Thanks.

Steve

Sep 10 '06 #2
Thanks Scott.

"Scott M." <s-***@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
This has nothing to do with ASP.NET. It has to do with fundamental web
page design. If your target audience is the 800 x 600 crowd, and you want
your content centered within the 800, you should make a one row by one
column table that is 760 pixels (not 800: subtract 40 pixels for the
built-in browser scroll bar) wide and center the table. Then just put
your entire web page content inside that one celled table.

"Uriah Piddle" <st*************@msn.comwrote in message
news:uo**************@TK2MSFTNGP04.phx.gbl...
>Hi Gang,

How do you center an ASP.NET 2.0 website in the browser window? My
website is 800 px wide and it renders to the left in all the browsers.

Thanks.

Steve


Sep 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: yogesh | last post by:
How to store the java applet emebedded in a web page for offline viewing? I saved the web page but it got saved without the applet.and also I searched for the corressponding .class file for the...
6
by: - jes | last post by:
Greetings. Using CSS, a programmer can set the color for an href link and a different color for a VISITED href link. Anyone know where this "list" of visited links is stored? Is it...
2
by: swbaz | last post by:
What is an effect way to prevent users from viewing a webpage directly by typing in its URL? For example: If a default page is set up as a login screen with user name and password. The user...
4
by: Maziar Aflatoun | last post by:
Hi everyone, I just wrote a complete shopping cart using DataGrids...etc with capability to edit each item etc. However, the textboxes become their default size when viewed in Netscape/Mozilla....
2
by: crjunk | last post by:
I'm having problems viewing ASPX pages in the VS.NET browser. For some unknown reason, it just stooped working. The status bar at the bottom just says "Downloading...". So far I haven't been...
3
by: Brooke | last post by:
How can I prevent a user from viewing the html code on a web page? e.g. right click->view source
5
by: aolson | last post by:
First of all i am pretty new to VB .NET as a whole so my answer may be silly as may my questions. Here is what i would like to do. I would like to open potentially multiple word documents for...
0
by: Jeremy | last post by:
If I create a folder in outlook and give it a homepage url to an ajax asp.net page I've developed, I get ajax errors on my page when viewed in outlook. If I click on a button in an update panel...
3
by: Tom | last post by:
I have a PHP 4.4.7, MySql 5.0 and I.E. 7. My PHP queries the database and renders the info into html forms. Submitting the forms manipulates the data. Now, the problem is that the browsers are...
6
by: prakashwadhwani | last post by:
I've been viewing this NG in my browser (both IE & Firefox) for years & never had a problem. However, off-late during the past 1 year, at times I get a thick 2- inch-wide vertical band on the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.