1
chefry
<TABLES> a tutorial
  • 2013/4/24 10:41

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


Xoops has always had a problem displaying tables. Part of that is due to theme settings

Here is a simple method of displaying tables properly..

1) in /theme/themename/ style.css add

le="color: #000000"><?php /* <table class="border" ... > */ table.border { border-spacing: 0; } table.border td,th { border: solid 1px black; padding: 4px; }


this will make sure that your theme will allow tables

2) create your table with an html creation program such as htmlbeauty. Do NOT use a WYSIWYG editor

3) VERY IMPORTANT!!! In your <table> definition add class="border"
i.e. <table cellspacing="0" class="border" align="center">

4) make sure there are no blank spaces in your html commands
i.e. </td> NOT </td >

5) make sure all your html commands are LOWER case. No upper case encoding.

6) put all your table html on one line. If you use Notepad++ there is a command at menu EDIT > Blank Operations > Remove Unnecessary Blank and EOL.

7) cut n paste your table into the editor of the module you are using and submit.

Done!

2
pespivufro
Re: <TABLES> a tutorial
  • 2013/4/25 7:56

  • pespivufro

  • Just popping in

  • Posts: 1

  • Since: 2013/4/25


Thank you, its help me a lot. Im try to fix this last 2 weeks ago:)