try another color scheme:


Go Back   TECH6.0 > Get Techie > Programming > HTML/CSS/JavaScript


HTML table is adding lines before the table

This is a discussion on HTML table is adding lines before the table within the HTML/CSS/JavaScript section, part of the Programming category; Hi, I hope this is an easy answer, or at least someone can easily tell me some things to try. ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 08-02-2010, 08:39 AM
No Avatar

Techie
 
Join Date: Aug 2008
Location: United States
Posts: 54
MisawaPlayer is on a distinguished road
Send a message via Yahoo to MisawaPlayer
Default HTML table is adding lines before the table

Hi,

I hope this is an easy answer, or at least someone can easily tell me some things to try.

I am posting to a forum (don't know who designed the software) that allows me to post HTML code. So, I am trying to place, as part of my post, a table, built with standard HTML commands.

The problem is that for approximately every row in my table, a blank line is placed before the table. This makes no sense to me.

Now, I am sure that the forum software is using style sheets and has certain things defined for tables. I also believe that as long as I "override" anything defined, my table should display like I want it.

So my question is two part. First, am I doing something wrong in my HTML code here? Second, if not, then any ideas what I can add that would prevent the blank lines from displaying prior to the table. Here is a sample HTML of my table:

HTML Code:
<table width=100% cellspacing="0" >
<tr><td colspan="2"><a HREF="http://www.realmofempires.com/Player.aspx?pName=Abyssal"><b>Abyssal</b></a>  <a HREF="http://www.realmofempires.com/messages_create.aspx?To=Abyssal">send mail</a></td></tr>
<tr><td>Abyssal(209,59)   <a HREF="http://www.realmofempires.com/CommandTroops.aspx?x=209&y=59&cmd=0">send support</a></td>
<td></td></tr>
<tr><td colspan="2"><hr width="50%" size=1 color="red"> </td></tr>
<tr><td colspan="2"><a HREF="http://www.realmofempires.com/Player.aspx?pName=ARYATHIN"><b>ARYATHIN</b></a>  <a HREF="http://www.realmofempires.com/messages_create.aspx?To=ARYATHIN">send mail</a></td></tr>
<tr><td>ARYATHIN village (176,22)   <a HREF="http://www.realmofempires.com/CommandTroops.aspx?x=176&y=22&cmd=0">send support</a></td>
<td></td></tr>
<tr><td colspan="2"><hr width="50%" size=1 color="red"> </td></tr>
<tr><td colspan="2"><a HREF="http://www.realmofempires.com/Player.aspx?pName=AuguztuzCeasaz"><b>AuguztuzCeasaz</b></a>  <a HREF="http://www.realmofempires.com/messages_create.aspx?To=AuguztuzCeasaz">send mail</a></td></tr>
<tr><td>AuguztuzCeasaz village (201,45)   <a HREF="http://www.realmofempires.com/CommandTroops.aspx?x=201&y=45&cmd=0">send support</a></a></td>
<td></td></tr>
<tr><td colspan="2"><hr width="50%" size=1 color="red"> </td></tr>
<tr><td colspan="2"><a HREF="http://www.realmofempires.com/Player.aspx?pName=Beld"><b>Beld</b></a>  <a HREF="http://www.realmofempires.com/messages_create.aspx?To=Beld">send mail</a></td></tr>
<tr><td>Condemned  (111,3)   <a HREF="http://www.realmofempires.com/CommandTroops.aspx?x=111&y=3&cmd=0">send support</a></td>
<td>Condemnedville  (115,23)   <a HREF="http://www.realmofempires.com/CommandTroops.aspx?x=115&y=23&cmd=0">send support</a></td></tr>
<tr><td>Damned (113,1)   <a HREF="http://www.realmofempires.com/CommandTroops.aspx?x=113&y=1&cmd=0">send support</a></td>
<td>Forsaken (113,2)   <a HREF="http://www.realmofempires.com/CommandTroops.aspx?x=113&y=2&cmd=0">send support</a></td></tr>
<tr><td>Forsakenville  (115,22)   <a HREF="http://www.realmofempires.com/CommandTroops.aspx?x=115&y=22&cmd=0">send support</a></td>
<td>Men of the Damned (113,4)   <a HREF="http://www.realmofempires.com/CommandTroops.aspx?x=113&y=4&cmd=0">send support</a></td></tr></table> 
Reply With Quote
  #2  
Old 08-02-2010, 04:18 PM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

any ideas what I can add that would prevent the blank lines from displaying prior to the table.
As Said by MisawaPlayer View Post
This problem reminded me of this thread. I think you're facing the same problem again. Read post #4 onwards and try removing all line breaks, spaces etc. from your HTML code.
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #3  
Old 09-02-2010, 02:48 AM
No Avatar

Techie
 
Join Date: Aug 2008
Location: United States
Posts: 54
MisawaPlayer is on a distinguished road
Send a message via Yahoo to MisawaPlayer
Default

Shame on me!

Yes you are right, and this is exactly what the problem was. Thank you.
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes




All times are GMT +5.5. The time now is 01:33 AM.

Contact Us - Tech6.com - Link to Us - Advertise - Submit Site - Privacy Statement - TOS - Top