chrometweaks.org

How to display ms access database on webpage using iPage?

Click Here To View All Answers...


Got a question, hope someone can answer... How to display ms access database on webpage using iPage? Looking forward for any answer or 2. My other question... Hi,.

I have placed a menu in my header but it will not align to center..

<TABLE  BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100>.

                   <TR class="header" VALIGN="BOTTOM" ALIGN="center">.

Anybody know what's wrong??.

Thanks,.

Pompeylad...

Comments (78)

I'm stumped. I'm not so sure what is the right answer to your question. I'll do some investigation and get back to you if I find an anything. You should email the people at iPage as they probably know..

Comment #1

You can align any page element by defining it in the appropriate place in your stylesheet. I personally have found that defiing it in the html is never very successful..

Example:.

Where the class is, say, <TABLE class="header" ... or <TR class="header" ....

Your stylesheet you would define it thus....

TABLE.header {.

Text-align: left;.

}.

Or.

TR.header {.

Text-align: left;.

}.

Etc..

HTH.

This post has been edited by.

Teejaycom.

: 16 February 2004, 03:59..

Comment #2

I have tryed all of the above, but nothing seems to work. Does anybody else have any tips?.

Thanks,.

Pompeylad..

Comment #3

Can you post a URL, or the code that you're trying to center? It's much easier to troubleshoot that way....

Terry..

Comment #4

This is my extraheader.php.

<TABLE  BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100">.

                   <TR class="header" align="center">.

**Table Info**.

                   </TR>.

               </TABLE>.

And this is the section of my header.php which contains the extreheader.php.

<tr class="header">.

   <td valign="middle"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image(DIR_WS_IMAGES'Gadget-XS-2.gif', 'Gadget XS')'</a>'; ?></td>.

<! additional header bit //>.

<?php require(DIR_WS_INCLUDES'extraheader.php'); ?>.

<! additional header bit_eof //>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">    .

<td align="center" valign="bottom"><?php echo '<a href="'tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')'">'tep_image(DIR_WS_IMAGES'header_spacer_10x10.gif', HEADER_TITLE_CHECKOUT)'</a>'; ?>&nbsp;&nbsp;</td>.

 </tr>.

</table>.

<table border="0" width="100%" cellspacing="0" cellpadding="1">.

 <tr class="headerNavigation">.

   <td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>.

   <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> &nbsp;|&nbsp; <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> &nbsp;&nbsp;</td>.

 </tr>.

</table>.

Hope this helps,.

Pompeylad...

Comment #5

Have you tried changing this:.

<TABLE  BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100">.

                  <TR class="header" align="center">.

**Table Info**.

                  </TR>.

              </TABLE>.

To this:.

<div align="center"><TABLE  BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100">.

                  <TR class="header" align="center">.

**Table Info**.

                  </TR>.

              </TABLE></div>.

Also, have you set alignment to center in your <td> cells, like this:.

<div align="center"><TABLE  BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100">.

                  <TR class="header" align="center">.

                     <td align="center">** first table cell **</td>.

                  </TR>.

              </TABLE></div>.

Also, in your header.php file, you end with a closing </td> before calling your extraheader.php file, but you don't close off the table row with a </tr>. Is the information in your extraheader.php supposed to be another cell as part of the same row as the preceding code? If not, then you should close it off with a </tr> and </table> before your extraheader.php table gets inserted..

HTH,.

Terry..

Comment #6

Hmm - don't know if you specifically wanted it to be in that particular place in the header, but it's different to mine.

My code in header.php looks like this:.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

 <tr class="header">.

   <td valign="middle" align="center"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image(DIR_WS_IMAGES'oscommerce.gif', 'Cheap Sheet Music')'</a>'; ?></td>.

 </tr>.

</table>.

<! additional header bit //>.

<?php require(DIR_WS_INCLUDES'extraheader.php'); ?>.

<! additional header bit_eof //>.

<table border="0" width="100%" cellspacing="0" cellpadding="1">.

 <tr class="headerNavigation">.

   <td class="headerNavigation"><?php echo $breadcrumb->trail(' '); ?></td>.

   <td align="right" class="headerNavigation">.

Secondly, open up extraheader.php and right at the very beginning, before the <table>, put <CENTER> and at the very very end, after the </table> put </CENTER>.

Simple, but it works for me...

Comment #7

Hi,.

I have placed a menu in my header but it will not align to center..

<TABLE  BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100>.

                   <TR class="header" VALIGN="BOTTOM" ALIGN="center">.

Anybody know what's wrong??.

Thanks,.

Pompeylad...

Comment #8

Try wrapping your table in a div align instead, like this:.

<div align="center"><table border="0" cellspacing="0" cellpadding="0" width="100%">.

    <tr>.

         <td>contents here</td>.

    </tr>.

 </table></div>.

HTH,.

Terry..

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.