Newbie question - Space between form and table

R

Russ Hromyko

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>
 
A

Andy Dingley

Russ said:
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"
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top