473,387 Members | 3,033 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,387 software developers and data experts.

How to make webform appear center in web browser

I cant figure out how to do it...

Any clues?
R
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.5 Beta 10
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Jun 1 '06 #1
5 1431


--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
"kd" <kd****@spam.com> wrote in message
news:44**********************@news.usenetmonster.c om...
I cant figure out how to do it...

Any clues?
R
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.5 Beta 10
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Jun 2 '06 #2
Simply place everything between the opening and closing body tags between
the following tags:

<div align="center">

</div>

This should work as far as centering "everything" (it will center each
individual element). Another way, which will "shift the screen" (left
aligned will be the left edge of the content area), which is probably the
look that is more what you are looking for, is to use a single-cell table,
as follows:

<table width="100%">
<tr>
<td align="center">

</td>
</tr>
</table>

Either way, just place everything between the opening and closing body tags
between the tags I gave above. Good Luck!
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"kd" <kd****@spam.com> wrote in message
news:44**********************@news.usenetmonster.c om...
I cant figure out how to do it...

Any clues?
R
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.5 Beta 10
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Jun 2 '06 #3
<center>stuff</center>

??

the div option is the easiest since a div is already present.
"Nathan Sokalski" <nj********@hotmail.com> schreef in bericht
news:%2****************@TK2MSFTNGP03.phx.gbl...
Simply place everything between the opening and closing body tags between
the following tags:

<div align="center">

</div>

This should work as far as centering "everything" (it will center each
individual element). Another way, which will "shift the screen" (left
aligned will be the left edge of the content area), which is probably the
look that is more what you are looking for, is to use a single-cell table,
as follows:

<table width="100%">
<tr>
<td align="center">

</td>
</tr>
</table>

Either way, just place everything between the opening and closing body
tags between the tags I gave above. Good Luck!
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"kd" <kd****@spam.com> wrote in message
news:44**********************@news.usenetmonster.c om...
I cant figure out how to do it...

Any clues?
R
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.5 Beta 10
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -


Jun 2 '06 #4
The center tag would work, but it is deprecated in HTML 4.0, so it is best
to avoid using it when you can.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Edwin Knoppert" <in**@pbsoft.speedlinq.nl> wrote in message
news:e5**********@azure.qinip.net...
<center>stuff</center>

??

the div option is the easiest since a div is already present.
"Nathan Sokalski" <nj********@hotmail.com> schreef in bericht
news:%2****************@TK2MSFTNGP03.phx.gbl...
Simply place everything between the opening and closing body tags between
the following tags:

<div align="center">

</div>

This should work as far as centering "everything" (it will center each
individual element). Another way, which will "shift the screen" (left
aligned will be the left edge of the content area), which is probably the
look that is more what you are looking for, is to use a single-cell
table, as follows:

<table width="100%">
<tr>
<td align="center">

</td>
</tr>
</table>

Either way, just place everything between the opening and closing body
tags between the tags I gave above. Good Luck!
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"kd" <kd****@spam.com> wrote in message
news:44**********************@news.usenetmonster.c om...
I cant figure out how to do it...

Any clues?
R
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.5 Beta 10
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -



Jun 2 '06 #5
Hi,

Nathan Sokalski wrote:
The center tag would work, but it is deprecated in HTML 4.0, so it is best
to avoid using it when you can.


Actually, align="center" is also outdated, so I would really recommend
using CSS for that, for example text-align: center, or margin: auto

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Jun 2 '06 #6

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

Similar topics

82
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | ...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
37
by: ajay | last post by:
How to make a web page getting refreshed after a given time interval automatically. HTML Code plz. Tx Ajay
1
by: nospamjac | last post by:
Hi, Is there a way to update the text of an asp:label on a webform without refreshing the entire page? What is called by button clicks and other events that refresh a webform control? See the...
5
by: Patrick F | last post by:
I got a link to my .aspx page, when the link is pressed i want the user to be able to download what the .aspx sends to it. Inside my .aspx page i have a string called strPage, i want that strPage...
7
by: Dean Slindee | last post by:
I would like to hear some practical comments about how to decide whether a new application becomes a Winform vs a Webform application. Would you say that every app should be, by default, a Winform...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
2
by: windsorben | last post by:
I'd like to have an image appear after the student answers each short answer question correctly. I can't seem to get it to work properly. See code below. Thanks! <html> <head>...
1
by: azura | last post by:
i had a problem... how can i auto detect that bold n italic field..when i enter the matric no, then the name will auto appear... i want to make this field using less button.. thanks <table...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.