By druwatcha on
Hello I've searched a lot but could not find a helpfull info on how to format tables in my drupal 6.10 installation.
What I found was a referenc link to formatting sites.
A very simple table can be created, but it only uses half of the site.
I read in some thread that style.css has specified 100% for width, and because of this my value is overwritten.
Is there a way to specify table width, this value is always ignored.
Comments
bump... Really no hint? :'(
bump...
Really no hint? :'(
Use FCKEditor or TinyMCE.
Use FCKEditor or TinyMCE. That is what I did.
Regards,
-S-
theme('table', $header, $rows)
http://api.drupal.org/api/function/theme_table
Here's an example for $rows: @verbatim $rows = array( // Simple row array( 'Cell 1', 'Cell 2', 'Cell 3' ), // Row with attributes on the row and some of its cells. array( 'data' => array('Cell 1', array('data' => 'Cell 2', 'colspan' => 2)), 'class' => 'funky' ) ); @endverbatim
print theme('table', $header, $rows, 'width'=>'100%') should do it.
Tables
I've been trying to get the tables to actually work using both of these editors but I'm not getting anywhere. I've added a variety of tags in the preferences, but I'm thinking that I must have missed something somewhere. Any help anyone can provide would be greatly appreciated! I'm using Advanced Forums and TinyMCE right now, but can switch to anything else, I just need to get this working...
Thanks much