Connecting Tech Pros Worldwide Help | Site Map

Question regarding Tables

Newbie
 
Join Date: Sep 2007
Posts: 2
#1: Sep 19 '07
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?
Death Slaught's Avatar
Site Addict
 
Join Date: Aug 2007
Location: Tennessee
Posts: 952
#2: Sep 19 '07

re: Question regarding Tables


Quote:

Originally Posted by Russ G

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
Newbie
 
Join Date: Sep 2007
Posts: 2
#3: Sep 20 '07

re: Question regarding Tables


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]
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,561
#4: Sep 21 '07

re: Question regarding Tables


Quick. Throw the book away you are learning with. It is at least 7 years old and not current with the times.
Death Slaught's Avatar
Site Addict
 
Join Date: Aug 2007
Location: Tennessee
Posts: 952
#5: Sep 21 '07

re: Question regarding Tables


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.
Reply