1
realist
Tables
  • 2006/1/3 10:36

  • realist

  • Just popping in

  • Posts: 8

  • Since: 2005/12/8


When entering a table into an articles page, the use of "returns" within the table seems to cause the table to begin further down the page then what it should.

Whereas when no "returns" are used within the html of the table the table sits at the top of the page!

Any help?

2
JMorris
Re: Tables
  • 2006/1/3 11:08

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


First, welcome to XOOPS!

This is a problem that's frustrated me for a long time as well. You'll also find you have "extra" line breaks when you hand code lists, paragraphs and so forth.

What I do is code my HTML in Dreamweaver then remove all line breaks, which puts all the HTML on one line. It's not as easy to read, but it renders much nicer.

Sorry, I don't have an answer as to *why* the modules insert the line breaks. I only have a work-around.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
Dead
Re: Tables
  • 2006/1/3 12:24

  • Dead

  • Just popping in

  • Posts: 7

  • Since: 2002/2/11


hi,

i believe the problem with the extra lines is due to modules using the sanitizer method nl2br() which converts all new lines to br tags.

4
mylbco
Re: Tables
  • 2006/1/3 13:26

  • mylbco

  • Just popping in

  • Posts: 3

  • Since: 2005/12/16


<TR><TD> first row, first cell contents </TD><TD> first row, last cell contents </TD></TR><TR><TD> last row, first cell contents </TD><TD> last row, last cell contents </TD></TR>

So make one long line !

5
mylbco
Re: Tables
  • 2006/1/3 13:28

  • mylbco

  • Just popping in

  • Posts: 3

  • Since: 2005/12/16


I hope I was clear, but what I mean is "remove all the newlines" in your text ... What happens ? The text editor sees the newlines in your html code, and puts them all above your table because they don't belong to your table ...

So just remove them all and make your table one long line without newlines ...

Hope you understand this complicate explication ...

6
stefan88
Re: Tables
  • 2006/1/3 14:32

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,
you don't say what module are you using ...
If it is smartsection, try to uncheck "Enable linebreak" under Options ...
..

7
realist
Re: Tables
  • 2006/1/4 1:55

  • realist

  • Just popping in

  • Posts: 8

  • Since: 2005/12/8


Thanks to everyone for the feedback to this frustrating problem.

Thanks JMorris for your welcome, I will use dreamerweaver and remove all line breaks as you suggested.:)

It's not smartsection!

Thanks all, regards

Realist

Login

Who's Online

211 user(s) are online (91 user(s) are browsing Support Forums)


Members: 0


Guests: 211


more...

Donat-O-Meter

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

Latest GitHub Commits