Hi All,
I have two user controls (header and footer) ,,which I've placed in an HTML
Table in a page.I set the **align="center"** in the table and the table
still is on the left side of the page .How can I get the whole page(Table
and its user controls) aligned in the center of my page?
Thanks for your time in advance.
Ali 7 4144
Thanks for your quick reply,
here is the code
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute;
TOP: 12px" cellSpacing="1"
cellPadding="1" align="center" width="300" border="1">
<TR>
<TD>UserControl1</TD>
</TR>
<TR>
<TD>Body</TD>
</TR>
<TR>
<TD>UserControl2</TD>
</TR>
</TABLE>
</form>
================================
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:eE**************@tk2msftngp13.phx.gbl... Ali: Can you provide more examples?
if I do <table align="Center" border="1" width="50%"> <tr><td>1</td><td>2</td></tr> </table>
the table appears in the middle in both IE and firefox.
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/
"ALI-R" <ne****@microsoft.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi All,
I have two user controls (header and footer) ,,which I've placed in an HTML Table in a page.I set the **align="center"** in the table and the table still is on the left side of the page .How can I get the whole
page(Table and its user controls) aligned in the center of my page?
Thanks for your time in advance. Ali
Ali,
It's probably the absolute positioning. Look at the style attribute,
it's set to put the table 8 pixels from the left margin. Setting the
alignment probably won't work as it should be over-ridden by the css
positioning. Try getting rid of the absolute positioning and see if that
helps. If you're using VS.Net, you may want to change from Grid Layout to
Flow Layout for the page. The positioning that the Grid Layout automatically
puts in can be a pain sometimes.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
"ALI-R" <ne****@microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Thanks for your quick reply, here is the code <form id="Form1" method="post" runat="server"> <TABLE id="Table1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 12px" cellSpacing="1" cellPadding="1" align="center" width="300" border="1"> <TR> <TD>UserControl1</TD> </TR> <TR> <TD>Body</TD> </TR> <TR> <TD>UserControl2</TD> </TR> </TABLE> </form>
================================ "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:eE**************@tk2msftngp13.phx.gbl... Ali: Can you provide more examples?
if I do <table align="Center" border="1" width="50%"> <tr><td>1</td><td>2</td></tr> </table>
the table appears in the middle in both IE and firefox.
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/
"ALI-R" <ne****@microsoft.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... > Hi All, > > I have two user controls (header and footer) ,,which I've placed in an HTML > Table in a page.I set the **align="center"** in the table and the table > still is on the left side of the page .How can I get the whole page(Table > and its user controls) aligned in the center of my page? > > Thanks for your time in advance. > Ali > >
Ali:
Can you provide more examples?
if I do
<table align="Center" border="1" width="50%">
<tr><td>1</td><td>2</td></tr>
</table>
the table appears in the middle in both IE and firefox.
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/
"ALI-R" <ne****@microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Hi All,
I have two user controls (header and footer) ,,which I've placed in an
HTML Table in a page.I set the **align="center"** in the table and the table still is on the left side of the page .How can I get the whole page(Table and its user controls) aligned in the center of my page?
Thanks for your time in advance. Ali
Thanks for your quick reply,
here is the code
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute;
TOP: 12px" cellSpacing="1"
cellPadding="1" align="center" width="300" border="1">
<TR>
<TD>UserControl1</TD>
</TR>
<TR>
<TD>Body</TD>
</TR>
<TR>
<TD>UserControl2</TD>
</TR>
</TABLE>
</form>
================================
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:eE**************@tk2msftngp13.phx.gbl... Ali: Can you provide more examples?
if I do <table align="Center" border="1" width="50%"> <tr><td>1</td><td>2</td></tr> </table>
the table appears in the middle in both IE and firefox.
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/
"ALI-R" <ne****@microsoft.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi All,
I have two user controls (header and footer) ,,which I've placed in an HTML Table in a page.I set the **align="center"** in the table and the table still is on the left side of the page .How can I get the whole
page(Table and its user controls) aligned in the center of my page?
Thanks for your time in advance. Ali
Ali,
It's probably the absolute positioning. Look at the style attribute,
it's set to put the table 8 pixels from the left margin. Setting the
alignment probably won't work as it should be over-ridden by the css
positioning. Try getting rid of the absolute positioning and see if that
helps. If you're using VS.Net, you may want to change from Grid Layout to
Flow Layout for the page. The positioning that the Grid Layout automatically
puts in can be a pain sometimes.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
"ALI-R" <ne****@microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Thanks for your quick reply, here is the code <form id="Form1" method="post" runat="server"> <TABLE id="Table1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 12px" cellSpacing="1" cellPadding="1" align="center" width="300" border="1"> <TR> <TD>UserControl1</TD> </TR> <TR> <TD>Body</TD> </TR> <TR> <TD>UserControl2</TD> </TR> </TABLE> </form>
================================ "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:eE**************@tk2msftngp13.phx.gbl... Ali: Can you provide more examples?
if I do <table align="Center" border="1" width="50%"> <tr><td>1</td><td>2</td></tr> </table>
the table appears in the middle in both IE and firefox.
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/
"ALI-R" <ne****@microsoft.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... > Hi All, > > I have two user controls (header and footer) ,,which I've placed in an HTML > Table in a page.I set the **align="center"** in the table and the table > still is on the left side of the page .How can I get the whole page(Table > and its user controls) aligned in the center of my page? > > Thanks for your time in advance. > Ali > >
Mark,
Thanks for yuor help.Now it's working:
The page's layout had been already set to **Flow Layout** so it didn't
help,but when I got rid of absolute positioning ,it worked and now the table
is in the center of the page.
Thanks Mark and Karl,
Ali
"Mark Fitzpatrick" <ma******@fitzme.com> wrote in message
news:eS**************@TK2MSFTNGP15.phx.gbl... Ali, It's probably the absolute positioning. Look at the style
attribute, it's set to put the table 8 pixels from the left margin. Setting the alignment probably won't work as it should be over-ridden by the css positioning. Try getting rid of the absolute positioning and see if that helps. If you're using VS.Net, you may want to change from Grid Layout to Flow Layout for the page. The positioning that the Grid Layout
automatically puts in can be a pain sometimes.
Hope this helps, Mark Fitzpatrick Microsoft MVP - FrontPage
"ALI-R" <ne****@microsoft.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Thanks for your quick reply, here is the code <form id="Form1" method="post" runat="server"> <TABLE id="Table1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 12px" cellSpacing="1" cellPadding="1" align="center" width="300" border="1"> <TR> <TD>UserControl1</TD> </TR> <TR> <TD>Body</TD> </TR> <TR> <TD>UserControl2</TD> </TR> </TABLE> </form>
================================ "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:eE**************@tk2msftngp13.phx.gbl... Ali: Can you provide more examples?
if I do <table align="Center" border="1" width="50%"> <tr><td>1</td><td>2</td></tr> </table>
the table appears in the middle in both IE and firefox.
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/
"ALI-R" <ne****@microsoft.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... > Hi All, > > I have two user controls (header and footer) ,,which I've placed in
an HTML > Table in a page.I set the **align="center"** in the table and the
table > still is on the left side of the page .How can I get the whole page(Table > and its user controls) aligned in the center of my page? > > Thanks for your time in advance. > Ali > >
Mark,
Thanks for yuor help.Now it's working:
The page's layout had been already set to **Flow Layout** so it didn't
help,but when I got rid of absolute positioning ,it worked and now the table
is in the center of the page.
Thanks Mark and Karl,
Ali
"Mark Fitzpatrick" <ma******@fitzme.com> wrote in message
news:eS**************@TK2MSFTNGP15.phx.gbl... Ali, It's probably the absolute positioning. Look at the style
attribute, it's set to put the table 8 pixels from the left margin. Setting the alignment probably won't work as it should be over-ridden by the css positioning. Try getting rid of the absolute positioning and see if that helps. If you're using VS.Net, you may want to change from Grid Layout to Flow Layout for the page. The positioning that the Grid Layout
automatically puts in can be a pain sometimes.
Hope this helps, Mark Fitzpatrick Microsoft MVP - FrontPage
"ALI-R" <ne****@microsoft.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Thanks for your quick reply, here is the code <form id="Form1" method="post" runat="server"> <TABLE id="Table1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 12px" cellSpacing="1" cellPadding="1" align="center" width="300" border="1"> <TR> <TD>UserControl1</TD> </TR> <TR> <TD>Body</TD> </TR> <TR> <TD>UserControl2</TD> </TR> </TABLE> </form>
================================ "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:eE**************@tk2msftngp13.phx.gbl... Ali: Can you provide more examples?
if I do <table align="Center" border="1" width="50%"> <tr><td>1</td><td>2</td></tr> </table>
the table appears in the middle in both IE and firefox.
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/
"ALI-R" <ne****@microsoft.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... > Hi All, > > I have two user controls (header and footer) ,,which I've placed in
an HTML > Table in a page.I set the **align="center"** in the table and the
table > still is on the left side of the page .How can I get the whole page(Table > and its user controls) aligned in the center of my page? > > Thanks for your time in advance. > Ali > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: 50295 |
last post by:
Hi!
I'm trying to set the align property/attribute of an IFrame to center
but its not working (see below). Can anyone please tell me what's going
on, and if there's a work around for this?
...
|
by: David. E. Goble |
last post by:
Hi All;
I have a few of these;
sigsImages="sigs/finished1.jpg"
sigsImages="sigs/foghorn.jpg"
lower I have;
|
by: VB Programmer |
last post by:
I created a simple user control and placed it on another page. Often I get
this error:
"Could not reformat the document due to line 27. The original format was
restored."
Line 27 in the...
|
by: ALI-R |
last post by:
Hi All,
I have two user controls (header and footer) ,,which I've placed in an HTML
Table in a page.I set the **align="center"** in the table and the table
still is on the left side of the page...
|
by: Ben Amada |
last post by:
Hello,
When centering a block of HTML, in the past, I've always used:
<div align="center"> ... </div>
However, in VS 2005, I get the following warning:
"Validation (XHTML 1.0...
|
by: melda |
last post by:
I am a real beginnner in ASP. Due to increasing demands on dynamic website, I've been working on ASP website now. I use a ready to use CMS program and right now I've been trying to combine a calendar...
|
by: Java Guy |
last post by:
I'm trying to view a web page. IE tells me there are (Java?) errors
on the page. Here they are:
Line: 15
Char: 7
Error: Wrong number of arguments or invalid propert assignment
Code: 0
URL:...
|
by: Aaron Gray |
last post by:
Whats the replacement for align="center" on a div ?
Many thanks in advance,
Aaron
|
by: CptJack |
last post by:
I've been banging my head on this one for a while now, so maybe someone else can figure out what's wrong here. I have several tables throughout my site which are defined using:
<asp:Table...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |