Newbie question - Space between form and table

Discussion in 'HTML' started by Russ Hromyko, Aug 10, 2006.

  1. Russ Hromyko

    Russ Hromyko Guest

    Hello,

    When I run this HTML program there is a orange/beige space between the form
    and the table, how do I get rid of that space or in other words how do I get
    the light blue form right under the blue table without any space between
    them.

    Thanks.

    Russ



    <HTML>

    <HEAD>

    <TITLE>Account</TITLE>

    <STYLE TYPE="text/css">
    BODY {background-color: FFD880}
    TABLE {xfont-family:"Arial"; font:menu;}
    </STYLE>

    <table border="10" cellspacing="0" bordercolor="#6699CC" width="100%"
    bgcolor="#6699CC">
    <tr>
    <td width="100%"><font color="white" face="Arial" font
    size="4"><b><nobr>Account Program</b></font></nobr></td>
    </tr>
    </table>

    </HEAD>

    <body style="font:10 pt Arial; margin-top: 0px; margin-left: 0px;
    margin-right: 0px;">

    <SCRIPT LANGUAGE="VBScript">
    SUB DNAME
    Msgbox " Account Test at 5:00pm "
    End SUB
    </SCRIPT>

    <form name="form1">
    <table border="0" width="100%" bordercolor="D0E0FF" bgcolor="D0E0FF">
    <tr><tr><tr><tr><tr><tr></tr>
    <td align="center"><nobr><font size="2">Scheduled Time:&nbsp<select size="1"
    name="DropDown">
    <option value="17:00:00">5:00pm</option>
    <option value="16:30:00">4:30pm</option>
    <option value="16:00:00">4:00pm</option>
    <option value="15:30:00">3:30pm</option>
    </td>
    <tr><tr><tr><tr><tr><tr><tr><tr></tr>

    <td align="center"><nobr><font size="2">&nbsp&nbsp&nbsp&nbsp&nbspAccount
    Name:&nbsp<input type="text" name="TextArea" value="Test" size="15">&nbsp
    <input id=runbutton type="button" value="Enter" name="run_button"
    onClick="DNAME()"></nobr>
    <tr><tr><tr><tr><tr><tr></tr>
    </td>
    </table>
    </form>
    </BODY>
    </HTML>
     
    Russ Hromyko, Aug 10, 2006
    #1
    1. Advertising

  2. Russ Hromyko

    Andy Dingley Guest

    Russ Hromyko wrote:

    > there is a orange/beige space between the form
    > and the table, how do I get rid of that space


    Add this to your stylesheet
    form { margin: 0; }

    Put it just below the line
    <STYLE TYPE="text/css">



    Then throw the entire page away, get yourself a decent book on HTML and
    start again. This trivial page is far more complicated than it needs to
    be (DOING IT WRONG IS MORE WORK THAN DOING IT RIGHT) and is the worst
    piece of HTML coding I've seen in months,

    As a book, then I'd suggest "Head First HTML & CSS"
     
    Andy Dingley, Aug 10, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shuo Xiang

    Stack space, global space, heap space

    Shuo Xiang, Jul 9, 2003, in forum: C Programming
    Replies:
    10
    Views:
    2,955
    Bryan Bullard
    Jul 11, 2003
  2. Christian Seberino
    Replies:
    21
    Views:
    1,767
    Stephen Horne
    Oct 27, 2003
  3. Ian Bicking
    Replies:
    2
    Views:
    1,080
    Steve Lamb
    Oct 23, 2003
  4. Ian Bicking
    Replies:
    2
    Views:
    765
    Michael Hudson
    Oct 24, 2003
  5. Replies:
    2
    Views:
    551
    Bergamot
    Jul 25, 2007
Loading...

Share This Page