Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Newbie question - Space between form and table

Reply
Thread Tools

Newbie question - Space between form and table

 
 
Russ Hromyko
Guest
Posts: n/a
 
      08-09-2006
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>


 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      08-10-2006
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"

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra space between form tag and table tag when screen resolution is 1280 x 1024 nikkilou@nycap.rr.com HTML 2 07-24-2007 11:29 PM
Why Python style guide (PEP-8) says 4 space indents instead of 8 space??? 8 space indents ever ok?? Christian Seberino Python 21 10-27-2003 04:20 PM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-24-2003 11:15 AM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-23-2003 07:07 AM
Stack space, global space, heap space Shuo Xiang C Programming 10 07-11-2003 07:30 PM



Advertisments