471,598 Members | 1,058 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,598 software developers and data experts.

Question regarding Tables

2
I'm sort of new to making my own web pages, and I'm having a problem with the position of a table on a web page I made up.

I have a title on the page, then there is a huge space before my table. How do I get the Table closer to the title?
Sep 19 '07 #1
4 1341
Death Slaught
1,137 1GB
I'm sort of new to making my own web pages, and I'm having a problem with the position of a table on a web page I made up.

I have a title on the page, then there is a huge space before my table. How do I get the Table closer to the title?
Sup Russ G, Welcome to TSDN!

ok I'm asumming your using the header elemenets, which puts a space above and below the header content.

[HTML]<h1>Title</h1>

<table border="1" cellspacing="0" cellpadding="0">
<tr>
<th>Header</th>
<th>Header</th>
</tr>
<tr>
<td>Content</td>
<td>Content</td>
</tr>
<tr>
<td>Content</td>
<td>Content</td>
</tr>
</table>[/HTML]

I'm assuming something like that, so you can fix your problem with the "font" element like this:

[HTML]<font size="20">

Title

<table border="1" cellspacing="0" cellpadding="0">
<tr>
<th>Header</th>
<th>Header</th>
</tr>
<tr>
<td>Content</td>
<td>Content</td>
</tr>
<tr>
<td>Content</td>
<td>Content</td>
</tr>
</table>
</font>[/HTML]

Hope it helps, Death
Sep 19 '07 #2
Russ G
2
I realize now I should have copied and pasted the code...this is the beginning of what I have:
[html]
<HTML>
<HEAD>
<TITLE>South Allegheny Gladiators Football 2007 Roster</TITLE>
</HEAD>
<BODY TEXT="NAVY" BGCOLOR="GOLD"><FONT FACE="Long Island"><BODY LINK="NAVY" ALINK="RED" VLINK="NAVY">
<CENTER>
<FONT SIZE=+4><B>Welcome to the <U>NEW </U> South Allegheny<BR>
Gladiator Football Booster Website!<BR><BR>
2007 GLADIATORS FOOTBALL ROSTER</B></FONT>
<TABLE BORDER="2" cellspacing="0" cellpadding="0"><B><I>
<TR>
<TH><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">NAME</FONT></CENTER></TH>
<TH><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">NUMBER</FONT></CENTER></TH>
<TH><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">OFFENSE</FONT></CENTER></TH>
<TH><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">DEFENSE</FONT></CENTER></TH>
<TH><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">HEIGHT</FONT></CENTER></TH>
<TH><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">WEIGHT</FONT></CENTER></TH>
<TH><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">YEAR</ FONT></CENTER></TH></TR></B></I><BR>
<TR>
<TD><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">Jason Dansak</FONT></CENTER></TD>
<TD><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">1</FONT></CENTER></TD>
<TD><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">WR</FONT></CENTER></TD>
<TD><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">DB</FONT></CENTER></TD>
<TD><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">5' 10"</FONT></CENTER></TD>
<TD><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">135</FONT></CENTER></TD>
<TD><CENTER><FONT SIZE=+2 FONT COLOR="NAVY" FONT FACE="Long Island">Freshman</FONT></CENTER></TD></TR><BR>
<TR>[/html]
Sep 20 '07 #3
drhowarddrfine
7,435 Expert 4TB
Quick. Throw the book away you are learning with. It is at least 7 years old and not current with the times.
Sep 21 '07 #4
Death Slaught
1,137 1GB
I removed the two "<br>" tags, and your "<tr>", because well you can't break a table in two, now can you? As for the "<tr>" you started a table row gave it no divisions or headers, and you didn't even end it ( not good ).



Hope it helps, Death


PS - if you have any more questions while your programming or learning post back any time.
Sep 21 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by wmf521 | last post: by
6 posts views Thread by Earl Anderson | last post: by
1 post views Thread by Tom | last post: by
6 posts views Thread by rodchar | last post: by
2 posts views Thread by Terrance | last post: by
2 posts views Thread by et | last post: by
5 posts views Thread by Regnab | last post: by
2 posts views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.