SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Table script?

  1. #1
    SitePoint Enthusiast montroze's Avatar
    Join Date
    Mar 2002
    Location
    Canada
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Table script?

    I have been trying to get these 2 boxes side by side and have had no luck, can someone kick me in the right direction, Thanks

    <html>
    <!-- creation date: 4/28/02 -->
    <head>
    <title></title>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <!-- start Pollking.com code -->

    <form action='http://www.polking.com/poll/poll_vote.php' method='post' target='_new'>
    <input name='pollID' type='hidden' value='1225'>
    <table width='125' border='1' bordercolor='#000000' cellpadding='3' cellspacing='0'>
    <tr>
    <td align='center' bgcolor='#6876e7'><font face='arial' color='#ffffff'><b>OS System</b></font></td>
    </tr>
    <tr>
    <td bgcolor='#cccccc'>
    <table border='0' cellpadding='0' cellspacing='0'>
    <tr>
    <td>
    <br>
    <font face='arial' color='#000000'>
    Which OS are you running?
    <br><br>
    <input name='vote' type='radio' value='1'>Win3.1<br><input name='vote' type='radio' value='2'>Win95<br><input name='vote' type='radio' value='3'>Win98<br><input name='vote' type='radio' value='4'>Win98se<br><input name='vote' type='radio' value='5'>WinNT<br><input name='vote' type='radio' value='6'>WinME<br><input name='vote' type='radio' value='7'>WinCE<br><input name='vote' type='radio' value='8'>Win2000<br><input name='vote' type='radio' value='9'>WinXP<br>
    </font>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </div>
    <tr>
    <td bgcolor='#cccccc' align='center'><input name='submit' type='submit' value='vote'><br><a href='http://www.polking.com/poll/poll_vote.php?pollID=1325&submit=1' target='_new'>Current Results</a></td>
    </tr>
    <tr>
    <td bgcolor='#cccccc' align='center'><a href='http://www.polking.com'>Free Web Polls</a></td>
    </tr>
    </table>
    </form>

    <!-- end Polking.com code -->

    <!-- Alxnet.com - poll code starts -->
    <form action="http://pub.alxnet.com/poll" METHOD="POST" >
    <input type="hidden" name="id" value="22754">
    <input type="hidden" name="q" value="submit">
    <table border="1" width="125" bordercolor="#000000" bgcolor="#cccccc" cellpadding="3" cellspacing="0">
    <tr><td bgcolor="#6876e7" align="middle">
    <font face="arial" color="#ffffff" SIZE="-1">Connection Speed</font></td></tr>
    <tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr><td><font face="verdana,geneva" color="#000011" size="1">What speed are you connecting at?</font></td></tr>
    <tr><td><input type="radio" name="rd" value="1"><font face="verdana" size="2" color="#000011">14.4</font></td></tr>
    <tr><td><input type="radio" name="rd" value="2"><font face="verdana" size="2" color="#000011">28.8</font></td></tr>
    <tr><td><input type="radio" name="rd" value="3"><font face="verdana" size="2" color="#000011">33.6</font></td></tr>
    <tr><td><input type="radio" name="rd" value="4"><font face="verdana" size="2" color="#000011">56k</font></td></tr>
    <tr><td><input type="radio" name="rd" value="5"><font face="verdana" size="2" color="#000011">DSL</font></td></tr>
    <tr><td><input type="radio" name="rd" value="6"><font face="verdana" size="2" color="#000011">Cable</font></td></tr>
    <tr><td><input type="radio" name="rd" value="7"><font face="verdana" size="2" color="#000011">ISDN</font></td></tr>
    <tr><td><input type="radio" name="rd" value="8"><font face="verdana" size="2" color="#000011">T1</font></td></tr>
    <tr><td><input type="radio" name="rd" value="9"><font face="verdana" size="2" color="#000011">T3</font></td></tr>
    <tr><td align="middle"><br><input type="submit" value="Vote"></td></tr>
    <tr><td align="middle"><font face="verdana" size="1"><a href="http://pub.alxnet.com/poll?id=22754&q=view" >Current Results</a></td></tr>
    </table></td></tr>
    <tr><td align="middle"><font face="verdana" size="1"><a href="http://www.alxnet.com/service/poll/">Create a FREE Alxnet Web Poll</a></td></tr>
    </table></form>
    <!-- Alxnet.com -- poll code ends -->

    </body>
    </html>

  2. #2
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This what you mean?:

    Code:
    <html> 
    <!-- creation date: 4/28/02 --> 
    <head> 
    <title></title> 
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
    </head> 
    <body>
    <table width="300" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
          <form action='http://www.polking.com/poll/poll_vote.php' method='post' target='_new'>
            <input name='pollID' type='hidden' value='1225'>
            <table width='125' border='1' bordercolor='#000000' cellpadding='3' cellspacing='0'>
              <tr> 
                <td align='center' bgcolor='#6876e7'><font face='arial' color='#ffffff'><b>OS 
                  System</b></font></td>
              </tr>
              <tr> 
                <td bgcolor='#cccccc'> 
                  <table border='0' cellpadding='0' cellspacing='0'>
                    <tr> 
                      <td> <br>
                        <font face='arial' color='#000000'> Which OS are you running? 
                        <br>
                        <br>
                        <input name='vote' type='radio' value='1'>
                        Win3.1<br>
                        <input name='vote' type='radio' value='2'>
                        Win95<br>
                        <input name='vote' type='radio' value='3'>
                        Win98<br>
                        <input name='vote' type='radio' value='4'>
                        Win98se<br>
                        <input name='vote' type='radio' value='5'>
                        WinNT<br>
                        <input name='vote' type='radio' value='6'>
                        WinME<br>
                        <input name='vote' type='radio' value='7'>
                        WinCE<br>
                        <input name='vote' type='radio' value='8'>
                        Win2000<br>
                        <input name='vote' type='radio' value='9'>
                        WinXP<br>
                        </font> </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td bgcolor='#cccccc' align='center'>
                  <input name='submit' type='submit' value='vote'>
                  <br>
                  <a href='http://www.polking.com/poll/poll_vote.php?pollID=1325&submit=1' target='_new'>Current 
                  Results</a></td>
              </tr>
              <tr> 
                <td bgcolor='#cccccc' align='center'><a href='http://www.polking.com'>Free 
                  Web Polls</a></td>
              </tr>
            </table>
          </form>
        </td>
        <td>
          <form action="http://pub.alxnet.com/poll" method="POST" >
            <input type="hidden" name="id" value="22754">
            <input type="hidden" name="q" value="submit">
            <table border="1" width="125" bordercolor="#000000" bgcolor="#cccccc" cellpadding="3" cellspacing="0">
              <tr>
                <td bgcolor="#6876e7" align="middle"> <font face="arial" color="#ffffff" size="-1">Connection 
                  Speed</font></td>
              </tr>
              <tr>
                <td>
                  <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                      <td><font face="verdana,geneva" color="#000011" size="1">What 
                        speed are you connecting at?</font></td>
                    </tr>
                    <tr>
                      <td>
                        <input type="radio" name="rd" value="1">
                        <font face="verdana" size="2" color="#000011">14.4</font></td>
                    </tr>
                    <tr>
                      <td>
                        <input type="radio" name="rd" value="2">
                        <font face="verdana" size="2" color="#000011">28.8</font></td>
                    </tr>
                    <tr>
                      <td>
                        <input type="radio" name="rd" value="3">
                        <font face="verdana" size="2" color="#000011">33.6</font></td>
                    </tr>
                    <tr>
                      <td>
                        <input type="radio" name="rd" value="4">
                        <font face="verdana" size="2" color="#000011">56k</font></td>
                    </tr>
                    <tr>
                      <td>
                        <input type="radio" name="rd" value="5">
                        <font face="verdana" size="2" color="#000011">DSL</font></td>
                    </tr>
                    <tr>
                      <td>
                        <input type="radio" name="rd" value="6">
                        <font face="verdana" size="2" color="#000011">Cable</font></td>
                    </tr>
                    <tr>
                      <td>
                        <input type="radio" name="rd" value="7">
                        <font face="verdana" size="2" color="#000011">ISDN</font></td>
                    </tr>
                    <tr>
                      <td>
                        <input type="radio" name="rd" value="8">
                        <font face="verdana" size="2" color="#000011">T1</font></td>
                    </tr>
                    <tr>
                      <td>
                        <input type="radio" name="rd" value="9">
                        <font face="verdana" size="2" color="#000011">T3</font></td>
                    </tr>
                    <tr>
                      <td align="middle"><br>
                        <input type="submit" value="Vote" name="submit2">
                      </td>
                    </tr>
                    <tr>
                      <td align="middle"><font face="verdana" size="1"><a href="http://pub.alxnet.com/poll?id=22754&q=view" >Current 
                        Results</a></font></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td align="middle"><font face="verdana" size="1"><a href="http://www.alxnet.com/service/poll/">Create 
                  a FREE Alxnet Web Poll</a></font></td>
              </tr>
            </table>
          </form>
        </td>
      </tr>
    </table>
    <!-- end Polking.com code -->
    <!-- Alxnet.com - poll code starts -->
    <!-- Alxnet.com -- poll code ends -->
    </body> 
    </html>
    I just put both form tags into a separate cell in a new table.
    Wavelan

  3. #3
    .net install meltdown
    Join Date
    May 2001
    Location
    View Ridge
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nest the whole thing in a table with one row & two cells:

    <table>
    <tr>
    <td>
    <!--Pollking.com code-->
    </td>
    <td>
    <!--Alxnet.com - poll code-->
    </td>
    </tr>
    </table>

    Also, the inner tables don't need to be nested so deep, you should be able to get the layout you want without nesting tables two deep for the individual polls.

    Hope I'm making sense.

    While rooting around in your code I noticed you've got a stray </div> in there:

    <!--</div> -->
    <tr>
    <td bgcolor='#cccccc' align='center'><input name='submit' type='submit' value='vote'><br><a href='http://www.polking.com/poll/poll_vote.php?pollID=1325&submit=1' target='_new'>Current Results</a></td>

    and are missing a two closing </font> tags at the end.

    Give a shout back if I'm obfuscating.

  4. #4
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just so you know:

    I got rid of the stray </div> tag and added the </font> tags as needed into my code above
    Wavelan


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •