Jump to content

[SOLVED] Align


unidox

Recommended Posts

This is my code:

 

<div align="center">
<table align="center">
<tr>
	<td colspan="3">
	<div align='center'>Welcome to the user section <? echo $r['name']; ?>!</div></td>
</tr>
<tr>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/profile.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/demos.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/downloads.gif" width="100" height="89" /></td>
</tr>
<tr>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/gallery.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/media.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/servers.gif" width="100" height="89" /></td>
</tr>
    <? if($_SESSION['admin'] == 1) {
    ?>
<tr>
	<td colspan="3">
	<div align="center"><br />You have logged in as an admin. To edit the site, please click below.</div></td>
</tr>
<tr>
	<td colspan="3">
	<div align="center">
	<img border="0" src="<? echo $site_url; ?>images/icons/admin.gif" width="100" height="89" /></div></td>
</tr>
    <?
    }
    ?>
</table>
</div>

 

The text and images align, but not the table, so the table is to the left, but I am trying to get the table in the middle. Whats wrong?

Thanks

Link to comment
https://forums.phpfreaks.com/topic/74663-solved-align/
Share on other sites

seems centered to me

 

try this:

 

<div align="center" style="width:100%;display:block">
<table align="center">
<tr>
	<td colspan="3">
	<div align='center'>Welcome to the user section <? echo $r['name']; ?>!</div></td>
</tr>
<tr>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/profile.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/demos.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/downloads.gif" width="100" height="89" /></td>
</tr>
<tr>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/gallery.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/media.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="<? echo $site_url; ?>images/icons/servers.gif" width="100" height="89" /></td>
</tr>
    <? if($_SESSION['admin'] == 1) {
    ?>
<tr>
	<td colspan="3">
	<div align="center"><br />You have logged in as an admin. To edit the site, please click below.</div></td>
</tr>
<tr>
	<td colspan="3">
	<div align="center">
	<img border="0" src="<? echo $site_url; ?>images/icons/admin.gif" width="100" height="89" /></div></td>
</tr>
    <?
    }
    ?>
</table>
</div>

Link to comment
https://forums.phpfreaks.com/topic/74663-solved-align/#findComment-377407
Share on other sites

still nothing. On my index.php where I am including it, this is the code:

 

<table><tr><td> </td><td>
        <?
	if ($_GET['p']){
	include("incs/files.inc.php");
	} else {
        include("" . $site_url . "incs/files.inc.php?p=news");
	}
	?></td><td> </td></tr></table>

Link to comment
https://forums.phpfreaks.com/topic/74663-solved-align/#findComment-377410
Share on other sites

<table align=center valign=top width=100%><tr><td> </td><td>
        <?
	if ($_GET['p']){
	include("incs/files.inc.php");
	} else {
        include("" . $site_url . "incs/files.inc.php?p=news");
	}
	?></td><td> </td></tr></table>

 

I only want some centered, not every page.

Link to comment
https://forums.phpfreaks.com/topic/74663-solved-align/#findComment-377414
Share on other sites

check maybe your table and your div is inside another div that makes your table ignore your current alignment

 

try to view the source of that page ! ;D

The source is:

 

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

        <div align="center" style="width:100%; display:block;">
<table align="center">
<tr>
	<td colspan="3">
	<div align='center'>Welcome to the user section...ect

Link to comment
https://forums.phpfreaks.com/topic/74663-solved-align/#findComment-377415
Share on other sites

Here:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Welcome! - Powered By: Pure cP</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="incs/Style.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#FFFFFF" style="margin:0px;">
<table id="Table_01" style="width: 1001; height: 1201;" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td rowspan="41" style="background-image:url(images/demo_01.gif)" width="72"></td>
	<td colspan="3" rowspan="8">
		<img src="images/demo_02.gif" width="180" height="66" alt="" /></td>

	<td colspan="6">
		<img src="images/demo_03.gif" width="136" height="4" alt="" /></td>
	<td rowspan="3">
		<img src="images/demo_04.gif" width="55" height="21" alt="" /></td>
	<td rowspan="8">
		<img src="images/demo_05.gif" width="129" height="66" alt="" /></td>
	<td colspan="6" rowspan="2">
		<img src="images/demo_06.gif" width="345" height="10" alt="" /></td>
	<td rowspan="8">

		<img src="images/demo_07.gif" width="11" height="66" alt="" /></td>
	<td rowspan="41">
		<img src="images/demo_08.gif" width="72" height="1200" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="4" alt="" /></td>
</tr>
<tr>
	<td colspan="5" rowspan="5">
		<img src="images/demo_09.gif" width="50" height="40" alt="" /></td>

	<td rowspan="2">
		<img src="images/demo_10.gif" width="86" height="17" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="6" alt="" /></td>
</tr>
<tr>
	<td colspan="6" rowspan="5">
		<img src="images/demo_11.gif" width="345" height="47" alt="" /></td>
	<td>

		<img src="images/spacer.gif" width="1" height="11" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/demo_12.gif" width="86" height="6" alt="" /></td>
	<td rowspan="2">
		<img src="images/demo_13.gif" width="55" height="21" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="6" alt="" /></td>

</tr>
<tr>
	<td rowspan="2">
		<img src="images/demo_14.gif" width="86" height="17" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="15" alt="" /></td>
</tr>
<tr>
	<td rowspan="3">

		<img src="images/demo_15.gif" width="55" height="24" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="2" alt="" /></td>
</tr>
<tr>
	<td colspan="6" rowspan="2">
		<img src="images/demo_16.gif" width="136" height="22" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="13" alt="" /></td>

</tr>
<tr>
	<td colspan="6">
		<img src="images/demo_17.gif" width="345" height="9" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="9" alt="" /></td>
</tr>
<tr>
	<td colspan="18">

		<img src="images/demo_18.gif" width="856" height="159" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="159" alt="" /></td>
</tr>
<tr>
	<td colspan="18">
		<img src="images/demo_19.gif" width="856" height="60" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="60" alt="" /></td>

</tr>
<tr>
	<td colspan="5" rowspan="30" height="100%" style="background-image:url(images/demo_67.gif)" valign="top">

		</td>
	<td rowspan="30">
		<img src="images/demo_21.gif" width="1" height="878" alt="" /></td>
	<td colspan="9">
		<img src="images/demo_22.gif" width="422" height="25" alt="" /></td>
	<td rowspan="30">

		<img src="images/demo_23.gif" width="1" height="878" alt="" /></td>
	<td colspan="2" rowspan="30" style="background-image:url(images/demo_67.gif)" valign="top">
					</td>
	<td>
		<img src="images/spacer.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
	<td colspan="9" rowspan="29" style="background-image:url(images/demo_65.gif)" valign="top">
	<table><tr><td> </td><td>

        <div align="center" style="width:100%; display:block;">
<table align="center">
<tr>
	<td colspan="3">
	<div align='center'>Welcome to the user section Pat Herlihy!</div></td>
</tr>
<tr>
	<td>
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/profile.gif" width="100" height="89" /></td>

	<td>
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/demos.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/downloads.gif" width="100" height="89" /></td>
</tr>
<tr>
	<td>
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/gallery.gif" width="100" height="89" /></td>
	<td>

	<img border="0" src="http://www.pure-cp.com/beta/images/icons/media.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/servers.gif" width="100" height="89" /></td>
</tr>
    	<tr>
	<td colspan="3">
	<div align="center"><br />You have logged in as an admin. To edit the site, please click below.</div></td>
</tr>

<tr>
	<td colspan="3">
	<div align="center">
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/admin.gif" width="100" height="89" /></div></td>
</tr>
    </table>
</div>
</td><td> </td></tr></table></td>

	<td>
		<img src="images/spacer.gif" width="1" height="14" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="7" alt="" /></td>
</tr>
<tr>
	<td>

		<img src="images/spacer.gif" width="1" height="69" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="3" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="5" alt="" /></td>

</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="9" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="2" alt="" /></td>
</tr>

<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="23" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="2" alt="" /></td>
</tr>
<tr>

	<td>
		<img src="images/spacer.gif" width="1" height="92" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="16" alt="" /></td>
</tr>
<tr>
	<td>

		<img src="images/spacer.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="26" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="20" alt="" /></td>

</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="7" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="25" alt="" /></td>
</tr>

<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="30" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>

	<td>
		<img src="images/spacer.gif" width="1" height="39" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="40" alt="" /></td>
</tr>
<tr>
	<td>

		<img src="images/spacer.gif" width="1" height="18" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="18" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="18" alt="" /></td>

</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="18" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="18" alt="" /></td>
</tr>

<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="57" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>

	<td>
		<img src="images/spacer.gif" width="1" height="36" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="190" alt="" /></td>
</tr>
<tr>
	<td colspan="18">

		<map name="FPMap0">
		<area href="" shape="rect" coords="779, 0, 855, 36">
		</map>
		<img src="images/demo_68.gif" width="856" height="37" alt="" usemap="#FPMap0" border="0" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="37" alt="" /></td>
</tr>
<tr>
	<td>

		<img src="images/spacer.gif" width="72" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="6" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="50" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="124" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="29" height="1" alt="" /></td>

	<td>
		<img src="images/spacer.gif" width="7" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="10" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="3" height="1" alt="" /></td>
	<td>

		<img src="images/spacer.gif" width="86" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="55" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="129" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="10" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="49" height="1" alt="" /></td>

	<td>
		<img src="images/spacer.gif" width="70" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="10" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="205" height="1" alt="" /></td>
	<td>

		<img src="images/spacer.gif" width="11" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="72" height="1" alt="" /></td>
	<td></td>
</tr>
</table>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/74663-solved-align/#findComment-377460
Share on other sites

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Welcome! - Powered By: Pure cP</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="incs/Style.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#FFFFFF" style="margin:0px;">
<div align="center">
  <table id="Table_01" style="width: 1001; height: 1201;" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td rowspan="41" style="background-image:url(images/demo_01.gif)" width="72"></td>
    <td colspan="3" rowspan="8">
	    <img src="images/demo_02.gif" width="180" height="66" alt="" /></td>
  
	<td colspan="6">
	  <img src="images/demo_03.gif" width="136" height="4" alt="" /></td>
    <td rowspan="3">
	    <img src="images/demo_04.gif" width="55" height="21" alt="" /></td>
    <td rowspan="8">
	    <img src="images/demo_05.gif" width="129" height="66" alt="" /></td>
    <td colspan="6" rowspan="2">
	    <img src="images/demo_06.gif" width="345" height="10" alt="" /></td>
    <td rowspan="8">
	    
	    <img src="images/demo_07.gif" width="11" height="66" alt="" /></td>
    <td rowspan="41">
	    <img src="images/demo_08.gif" width="72" height="1200" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="4" alt="" /></td>
  </tr>
    <tr>
      <td colspan="5" rowspan="5">
        <img src="images/demo_09.gif" width="50" height="40" alt="" /></td>
  
	<td rowspan="2">
	  <img src="images/demo_10.gif" width="86" height="17" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="6" alt="" /></td>
  </tr>
    <tr>
      <td colspan="6" rowspan="5">
        <img src="images/demo_11.gif" width="345" height="47" alt="" /></td>
    <td>
	    
	    <img src="images/spacer.gif" width="1" height="11" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/demo_12.gif" width="86" height="6" alt="" /></td>
    <td rowspan="2">
	    <img src="images/demo_13.gif" width="55" height="21" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="6" alt="" /></td>
</tr>
    <tr>
      <td rowspan="2">
        <img src="images/demo_14.gif" width="86" height="17" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="15" alt="" /></td>
  </tr>
    <tr>
      <td rowspan="3">
        
        <img src="images/demo_15.gif" width="55" height="24" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="2" alt="" /></td>
  </tr>
    <tr>
      <td colspan="6" rowspan="2">
        <img src="images/demo_16.gif" width="136" height="22" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="13" alt="" /></td>
</tr>
    <tr>
      <td colspan="6">
        <img src="images/demo_17.gif" width="345" height="9" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="9" alt="" /></td>
  </tr>
    <tr>
      <td colspan="18">
        
        <img src="images/demo_18.gif" width="856" height="159" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="159" alt="" /></td>
  </tr>
    <tr>
      <td colspan="18">
        <img src="images/demo_19.gif" width="856" height="60" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="60" alt="" /></td>
</tr>
    <tr>
      <td colspan="5" rowspan="30" height="100%" style="background-image:url(images/demo_67.gif)" valign="top">        </td>
    <td rowspan="30">
	    <img src="images/demo_21.gif" width="1" height="878" alt="" /></td>
    <td colspan="9">
	    <img src="images/demo_22.gif" width="422" height="25" alt="" /></td>
    <td rowspan="30">
	    
	    <img src="images/demo_23.gif" width="1" height="878" alt="" /></td>
    <td colspan="2" rowspan="30" style="background-image:url(images/demo_67.gif)" valign="top">		    </td>
    <td>
	    <img src="images/spacer.gif" width="1" height="25" alt="" /></td>
  </tr>
    <tr>
      <td colspan="9" rowspan="29" style="background-image:url(images/demo_65.gif)" valign="top">
        <table><tr><td> </td><td>
          
          <div align="center" style="width:100%; display:block;">
  <table align="center">
    <tr>
      <td colspan="3">
        <div align='center'>Welcome to the user section Pat Herlihy!</div></td>
  </tr>
    <tr>
      <td>
        <img border="0" src="http://www.pure-cp.com/beta/images/icons/profile.gif" width="100" height="89" /></td>
  
	<td>
	  <img border="0" src="http://www.pure-cp.com/beta/images/icons/demos.gif" width="100" height="89" /></td>
	  <td>
	    <img border="0" src="http://www.pure-cp.com/beta/images/icons/downloads.gif" width="100" height="89" /></td>
  </tr>
    <tr>
      <td>
        <img border="0" src="http://www.pure-cp.com/beta/images/icons/gallery.gif" width="100" height="89" /></td>
	  <td>
	    
	    <img border="0" src="http://www.pure-cp.com/beta/images/icons/media.gif" width="100" height="89" /></td>
	  <td>
	    <img border="0" src="http://www.pure-cp.com/beta/images/icons/servers.gif" width="100" height="89" /></td>
  </tr>
    <tr>
      <td colspan="3">
        <div align="center"><br />You have logged in as an admin. To edit the site, please click below.</div></td>
  </tr>
    
    <tr>
      <td colspan="3">
        <div align="center">
          <img border="0" src="http://www.pure-cp.com/beta/images/icons/admin.gif" width="100" height="89" /></div></td>
  </tr>
    </table>
  </div>
  </td><td> </td></tr></table></td>
  
	<td>
	  <img src="images/spacer.gif" width="1" height="14" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="7" alt="" /></td>
  </tr>
    <tr>
      <td>
        
        <img src="images/spacer.gif" width="1" height="69" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="3" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="5" alt="" /></td>
</tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="9" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="2" alt="" /></td>
  </tr>
    
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="23" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="2" alt="" /></td>
  </tr>
    <tr>
      
      <td>
        <img src="images/spacer.gif" width="1" height="92" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="16" alt="" /></td>
  </tr>
    <tr>
      <td>
        
        <img src="images/spacer.gif" width="1" height="25" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="26" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="20" alt="" /></td>
</tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="7" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="25" alt="" /></td>
  </tr>
    
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="30" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="25" alt="" /></td>
  </tr>
    <tr>
      
      <td>
        <img src="images/spacer.gif" width="1" height="39" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="40" alt="" /></td>
  </tr>
    <tr>
      <td>
        
        <img src="images/spacer.gif" width="1" height="18" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="18" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="18" alt="" /></td>
</tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="18" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="18" alt="" /></td>
  </tr>
    
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="57" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="1" alt="" /></td>
  </tr>
    <tr>
      
      <td>
        <img src="images/spacer.gif" width="1" height="36" alt="" /></td>
  </tr>
    <tr>
      <td>
        <img src="images/spacer.gif" width="1" height="190" alt="" /></td>
  </tr>
    <tr>
      <td colspan="18">
        
        <map name="FPMap0">
          <area href="" shape="rect" coords="779, 0, 855, 36">
          </map>
        <img src="images/demo_68.gif" width="856" height="37" alt="" usemap="#FPMap0" border="0" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="37" alt="" /></td>
  </tr>
    <tr>
      <td>
        
        <img src="images/spacer.gif" width="72" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="6" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="50" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="124" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="29" height="1" alt="" /></td>
  
	<td>
	  <img src="images/spacer.gif" width="7" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="10" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="3" height="1" alt="" /></td>
    <td>
	    
	    <img src="images/spacer.gif" width="86" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="55" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="129" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="10" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="49" height="1" alt="" /></td>
  
	<td>
	  <img src="images/spacer.gif" width="70" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="10" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="1" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="205" height="1" alt="" /></td>
    <td>
	    
	    <img src="images/spacer.gif" width="11" height="1" alt="" /></td>
    <td>
	    <img src="images/spacer.gif" width="72" height="1" alt="" /></td>
    <td></td>
  </tr>
  </table>
</div>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/74663-solved-align/#findComment-377464
Share on other sites

Teng - Yours didn't work for me either.

 

This worked for me

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Welcome! - Powered By: Pure cP</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="incs/Style.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#FFFFFF" style="margin:0px;">
<table id="Table_01" style="width: 1001; height: 1201;" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td rowspan="41" style="background-image:url(images/demo_01.gif)" width="72"></td>
	<td colspan="3" rowspan="8">
		<img src="images/demo_02.gif" width="180" height="66" alt="" /></td>

	<td colspan="6">
		<img src="images/demo_03.gif" width="136" height="4" alt="" /></td>
	<td rowspan="3">
		<img src="images/demo_04.gif" width="55" height="21" alt="" /></td>
	<td rowspan="8">
		<img src="images/demo_05.gif" width="129" height="66" alt="" /></td>
	<td colspan="6" rowspan="2">
		<img src="images/demo_06.gif" width="345" height="10" alt="" /></td>
	<td rowspan="8">

		<img src="images/demo_07.gif" width="11" height="66" alt="" /></td>
	<td rowspan="41">
		<img src="images/demo_08.gif" width="72" height="1200" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="4" alt="" /></td>
</tr>
<tr>
	<td colspan="5" rowspan="5">
		<img src="images/demo_09.gif" width="50" height="40" alt="" /></td>

	<td rowspan="2">
		<img src="images/demo_10.gif" width="86" height="17" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="6" alt="" /></td>
</tr>
<tr>
	<td colspan="6" rowspan="5">
		<img src="images/demo_11.gif" width="345" height="47" alt="" /></td>
	<td>

		<img src="images/spacer.gif" width="1" height="11" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/demo_12.gif" width="86" height="6" alt="" /></td>
	<td rowspan="2">
		<img src="images/demo_13.gif" width="55" height="21" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="6" alt="" /></td>

</tr>
<tr>
	<td rowspan="2">
		<img src="images/demo_14.gif" width="86" height="17" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="15" alt="" /></td>
</tr>
<tr>
	<td rowspan="3">

		<img src="images/demo_15.gif" width="55" height="24" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="2" alt="" /></td>
</tr>
<tr>
	<td colspan="6" rowspan="2">
		<img src="images/demo_16.gif" width="136" height="22" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="13" alt="" /></td>

</tr>
<tr>
	<td colspan="6">
		<img src="images/demo_17.gif" width="345" height="9" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="9" alt="" /></td>
</tr>
<tr>
	<td colspan="18">

		<img src="images/demo_18.gif" width="856" height="159" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="159" alt="" /></td>
</tr>
<tr>
	<td colspan="18">
		<img src="images/demo_19.gif" width="856" height="60" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="60" alt="" /></td>

</tr>
<tr>
	<td colspan="5" rowspan="30" height="100%" style="background-image:url(images/demo_67.gif)" valign="top">

		</td>
	<td rowspan="30">
		<img src="images/demo_21.gif" width="1" height="878" alt="" /></td>
	<td colspan="9">
		<img src="images/demo_22.gif" width="422" height="25" alt="" /></td>
	<td rowspan="30">

		<img src="images/demo_23.gif" width="1" height="878" alt="" /></td>
	<td colspan="2" rowspan="30" style="background-image:url(images/demo_67.gif)" valign="top">
					</td>
	<td>
		<img src="images/spacer.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
	<td colspan="9" rowspan="29" style="background-image:url(images/demo_65.gif)" valign="top">
	<table align="center"><tr><td> </td><td>

        <div align="center" style="width:100%; display:block;">
<table align="center">
<tr>
	<td colspan="3">
	<div align='center'>Welcome to the user section Pat Herlihy!</div></td>
</tr>
<tr>
	<td>
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/profile.gif" width="100" height="89" /></td>

	<td>
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/demos.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/downloads.gif" width="100" height="89" /></td>
</tr>
<tr>
	<td>
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/gallery.gif" width="100" height="89" /></td>
	<td>

	<img border="0" src="http://www.pure-cp.com/beta/images/icons/media.gif" width="100" height="89" /></td>
	<td>
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/servers.gif" width="100" height="89" /></td>
</tr>
    	<tr>
	<td colspan="3">
	<div align="center"><br />You have logged in as an admin. To edit the site, please click below.</div></td>
</tr>

<tr>
	<td colspan="3">
	<div align="center">
	<img border="0" src="http://www.pure-cp.com/beta/images/icons/admin.gif" width="100" height="89" /></div></td>
</tr>
    </table>
</div>
</td><td> </td></tr></table></td>

	<td>
		<img src="images/spacer.gif" width="1" height="14" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="7" alt="" /></td>
</tr>
<tr>
	<td>

		<img src="images/spacer.gif" width="1" height="69" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="3" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="5" alt="" /></td>

</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="9" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="2" alt="" /></td>
</tr>

<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="23" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="2" alt="" /></td>
</tr>
<tr>

	<td>
		<img src="images/spacer.gif" width="1" height="92" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="16" alt="" /></td>
</tr>
<tr>
	<td>

		<img src="images/spacer.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="26" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="20" alt="" /></td>

</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="7" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="25" alt="" /></td>
</tr>

<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="30" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="25" alt="" /></td>
</tr>
<tr>

	<td>
		<img src="images/spacer.gif" width="1" height="39" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="40" alt="" /></td>
</tr>
<tr>
	<td>

		<img src="images/spacer.gif" width="1" height="18" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="18" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="18" alt="" /></td>

</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="18" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="18" alt="" /></td>
</tr>

<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="57" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>

	<td>
		<img src="images/spacer.gif" width="1" height="36" alt="" /></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="1" height="190" alt="" /></td>
</tr>
<tr>
	<td colspan="18">

		<map name="FPMap0">
		<area href="" shape="rect" coords="779, 0, 855, 36">
		</map>
		<img src="images/demo_68.gif" width="856" height="37" alt="" usemap="#FPMap0" border="0" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="37" alt="" /></td>
</tr>
<tr>
	<td>

		<img src="images/spacer.gif" width="72" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="6" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="50" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="124" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="29" height="1" alt="" /></td>

	<td>
		<img src="images/spacer.gif" width="7" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="10" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="3" height="1" alt="" /></td>
	<td>

		<img src="images/spacer.gif" width="86" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="55" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="129" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="10" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="49" height="1" alt="" /></td>

	<td>
		<img src="images/spacer.gif" width="70" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="10" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="205" height="1" alt="" /></td>
	<td>

		<img src="images/spacer.gif" width="11" height="1" alt="" /></td>
	<td>
		<img src="images/spacer.gif" width="72" height="1" alt="" /></td>
	<td></td>
</tr>
</table>
</body>
</html>

 

I changed line 114. I added "align='center'" as an attribute to the table.

Link to comment
https://forums.phpfreaks.com/topic/74663-solved-align/#findComment-377481
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.