1
eon03
Table in News
  • 2005/2/16 2:17

  • eon03

  • Just popping in

  • Posts: 23

  • Since: 2005/2/3 2


I have a table coded inside of a news article and for some reason I keep getting a large space above the table when it is posted. I can not figure out how to make the table appear immediately under the last line of text in the news posting.

Here is the code:
<table>
<
tr><td align="center"><b>Sireb>td>
<
td align="center"><b>Damb>td>
tr>
<
tr>
<
td align="center"><img src="http://www.francosbluedenali.com/modules/xoopsgallery/cache/albums/album02/CIMG0150_edited.thumb.jpg" alt="Sire"  border="0" />td>
<
td align="center"><img src="http://www.francosbluedenali.com/modules/xoopsgallery/cache/albums/album02/CIMG0098.thumb.jpg" alt="Dam"  border="0" />td>
tr>
table>


The news item is here:
http://www.francosbluedenali.com/modules/news/article.php?storyid=1

Any ideas why the table is so far below the last line of text?

2
ackbarr
Re: Table in News

the default setting for the XOOPS Textarea is to convert every newline into the HTML
tag. This causes extra newlines to appear inside your table tag, but since they do not occur inside a table cell both IE and Mozilla place them above the table in rendering order.

The workaround is to remove any extra newlines from the HTML.

3
JasonMR
Re: Table in News
  • 2005/2/16 3:08

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


Quick fix (sorry, but haven't got the time to look into this!):

- add to table a class (e.g. class="NewsTable")
- open your themes style sheet and add the following rule:

table.NewsTable {margin-top: -20px;}

...which should move table up to where you want it.

I recommend the extra class, as any changes to the general tables styles in your themes style sheets, may have unwanted effects!


Hope this helps...

4
eon03
Re: Table in News
  • 2005/2/16 4:41

  • eon03

  • Just popping in

  • Posts: 23

  • Since: 2005/2/3 2


Both of these solutions work as well as my simple "cheat", I recreated the table in my image editor and saved it as a JPG then posted that in the story with no table.

Thanks for your responses.

Login

Who's Online

234 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 234


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits