Jump to content

<table valign='top'> Issue


suttercain
 Share

Recommended Posts

Hi everyone,Hope you all had a nice weekend.I am running into an issue with the <table valign='top'> tag. I have it set, yet I the table des not go to the top, it stays in the center. Here is the site, http://www.supermandatabase.com/comic_index.phpAs you can see the drop down menu is in the ceter of the page. I actually would like it at the top beneath the Comics title. If you select a query, the results also show up in the center instead of the top.Here is the code I am using... be warned, it's long,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">@import url("sd_style.css");</style><?php require ('get_connected.php'); ?><title>Superman Database :: Comics</title><?php include ('header.html'); ?><body>        <table width="986"  border="0" cellspacing="0" cellpadding="5">            <tr>              <td valign="top" colspan="2" bgcolor="#FFFFFF">                <h2>Comics</h2>				</td>              <td width="31%" rowspan="2" valign="top" bgcolor="#CCCCCC"><script type="text/javascript"><!--google_color_link = "000000";google_color_text = "000000";google_color_url = "263B5A";//--></script><script type="text/javascript"  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><br><br><script language="JavaScript" src="http://lapi.ebay.com/ws/eBayISAPI.dll?EKServer&ai=snn%7Fhz&bdrcolor=666666&cid=0&eksize=5&encode=ISO-8859-1&endcolor=FF0000&endtime=y&fbgcolor=EFEFEF&fntcolor=000000&fs=0&gallery=y&hdrcolor=FFFFCC&hdrimage=10&hdrsrch=n&img=y&lnkcolor=0000FF&logo=12&num=25&numbid=y&paypal=n&popup=n&prvd=1&query=Comics+Superman&r0=4&shipcost=n&sid=2176471&siteid=0&sort=MetaEndSort&sortby=endtime&sortdir=asc&srchdesc=n&tbgcolor=FFFFFF&tlecolor=333333&tlefs=0&tlfcolor=FFFFFF&track=comics&width=570"></script></td>            </tr>            <tr>              <td colspan="2" align="center" valign="top" bgcolor="#FFFFFF"><table width="650" border="0" cellspacing="2" cellpadding="2">                <tr>                  <td valign="top"><strong>A List of Every Comic in our Database Grouped by Title </strong></td>                </tr>                <tr>                  <td width="665">				  <form action="comic_index_view.php" method="post">				  <?php                  $result = mysql_query("SELECT title, COUNT(title) AS count FROM comics GROUP BY title") or die(mysql_error());                  $options="";                  echo "<select name='title'>";                    while($row = mysql_fetch_array($result))					{                   					$title=$row["title"];                  echo "<option value='" . $title . "'>".$title. " (" . $row['count'] . " Issues)</option>'";                    }                  echo "</select>";                  ?>                  <input type="submit" name="submit">                  </form>				  </td>                </tr>                <tr>                  <td> </td>                </tr>              </table>			  </td>          </tr>                  <tr>                    <td width="17%"></td>                  </tr></table>                </table><?php include('footing.html'); ?></body></html>

Any help would be much appreciated. Thank you in advance.SC

Link to comment
Share on other sites

There must be something pushing the table down. I would suggest putting the php include after the body take then, while designing, give the table a border just so you can see whats going on. You can always take the border out when you are finished.I would also suggest you have a look into tabless layouts, this should come quite easily to you if you are already using css.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...