Page 1 of 1

Spacing problems on page wtih includes

Posted: Sat Oct 26, 2002 9:09 am
by rfigley
Here's the page I'm working with:
http://www.advancedresearchtechnologies ... lip_14.php

I'm using this code for a WMF viewing page that displays viewers that have logged in. Have a lotof expra spacing that I'd like to get rid of. I'm just coming in with php includes to display the database content for each seating position. Not sure if echoing all the html via php will solve this or not. But before I go to the time of doing that, is there another solution to get tid of all this space? Keep in mind there's a frame below this page for online chat,
http://www.advancedresearchtechnologies ... e_room.htm

so that's the reason for eliminating teh extra space.
Here's the code:

Note: I tried not separating each pulldown with a table cell and it give me this:
http://www.advancedresearchtechnologies ... 14test.php

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="999999" topmargin="0">
<table width="482" height="354" border="0" align="center">
  <tr>
    <td width="41" height="350" valign="top"><table width="40">
        <tr> 
          <td> 
            <?php include('includes/seat5.php'); ?>
          </td>
        </tr>
        <tr>
          <td>
            <?php include('includes/seat4.php'); ?>
          </td>
        </tr>
        <tr> 
          <td> 
            <?php include('includes/seat3.php'); ?>
          </td>
        </tr>
        <tr> 
          <td> 
            <?php include('includes/seat2.php'); ?>
          </td>
        </tr>
        <tr> 
          <td> 
            <?php include('includes/seat1.php'); ?>
          </td>
        </tr>
        <tr> 
          <td><table border="1" cellpadding="0"
                cellspacing="0" width="175" bordercolor="#FFFFFF"
                height="104">
              <tr> 
                <td align="center" height="106"><font
                        size="2"
                        face="Arial, Helvetica, sans-serif">Project #GMX352<br>
                  Atlanta GA<br>
                  John Doe(Anylist)<br>
                  Observation room PH#(555)-555-1212</font> <p><font
                        size="2">FAX#(555)-555-1212</font></p></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
    <td width="386"><table width=380 height="347" border=0 align="center" cellpadding=0 cellspacing=0>
        <tr> 
          <td colspan=3> <img src="images/video_frame_new_01.gif" width=380 height=76></td>
        </tr>
        <tr> 
          <td rowspan=2> <img src="images/video_frame_new_02.gif" width=5 height=272></td>
          <td height="247" bgcolor="#000000"><div align="center"> 
              <object id="video1"
                
                align="baseline" border="0" width="352"
                height="240">
                <param name="controls"
                value="ImageWindow">
                <param name="console"
                value="Clip1">
                <param name="autostart"
                value="false">
                <param name="src"
             value="kevins_video_page/ART%20Viedo%20Test%2001.wmv">
                <embed src="http://www.advancedresearchtechnologies.com/artsite/images/ART_Viedo_Test_01.wmv" align="baseline" border="0" width="352" height="240"  console="Clip1" controls="ImageWindow" autostart="false"></embed></object>
            </div></td>
          <td rowspan=2> <img src="images/video_frame_new_04.gif" width=9 height=272></td>
        </tr>
        <tr> 
          <td height="24"> <img src="images/video_frame_new_05.gif" width=366 height=22></td>
        </tr>
      </table></td>
    <td width="41" valign="top"><table width="33" border="0">
        <tr> 
          <td> 
            <?php include('includes/seat6.php'); ?>
          </td>
        </tr>
        <tr>
          <td>
            <?php include('includes/seat7.php'); ?>
          </td>
        </tr>
        <tr> 
          <td>
            <?php include('includes/seat8.php'); ?>
          </td>
        </tr>
        <tr> 
          <td>
            <?php include('includes/seat9.php'); ?>
          </td>
        </tr>
        <tr> 
          <td>
            <?php include('includes/seat10.php'); ?>
          </td>
        </tr>
        <tr> 
          <td><div align="center"><a
                href="javascript:NewWindow('comment_box.htm','comments','310','300','custom','front');"><img
                src="images/comments.gif" border="0" width="100"
                height="100"></a> 
              <select name="selectThis" size="1"
                    onchange="goThere(this.form);">
                <option selected value>Options </option>
                <option value="help_bigger.htm">Bigger Screen </option>
                <option value="help_clicking.htm">I Hear Clicking </option>
                <option value="help_jumpy.htm">Video Jumpy </option>
                <option value="help_sound.htm">No Sound </option>
                <option value="help_powerpoint.htm">Import To PPT </option>
                <option value="help_video.htm">No Video </option>
              </select>
            </div></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
[url=http://]www.advancedresearchtechnologies.com/ar ... e_room.htm[/url] [url=http://]http://www.advancedresearchtechnologies ... e_room.htm[/url]

Posted: Sat Oct 26, 2002 9:18 pm
by volka
your includes produce (nearly) complete html-documents, i.e. <?php include('includes/seat1.php'); ?> :arrow:
<html><title>Seat 1</title><BODY bgcolor="#999999" text="#FFFFFF">
<BR><BR>

<form><select name='seat'><option value=Chuck Taggert>Chuck Taggert</option><option value=Odessy 5>Odessy 5</option><option value=54>54</option><option value=Male>Male</option><option value=45000>45000</option><option value=Astronaut>Astronaut</option><option value=Married>Married</option></form></body>
</html>
despite that a nested <html>-element is $#*%! ( ;) ) the two <BR> will take vertical space.

p.s.:
<title>-tag is not closed and should be a child of <head>, not <html>
<select>-tag not closed
<option value=Odessy 5> at least here the value must be quoted

try http://validator.w3.org/