TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

July 17, 2024, 07:41:20 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,321
  • Total Topics: 21,233
  • Online today: 106
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 54
  • Total: 55
  • @rjen

Tables, inline styles.

Started by Minsc, February 18, 2006, 11:58:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Minsc

Hi all.

I'm trying to insert a table into an article with code something like this.


<table style="border: 0pt none ; color: rgb(200, 0, 0); background-color: black;">
<thead style="background-color: rgb(0, 51, 102); font-weight: bold;">
<tr style="color: rgb(255, 204, 204);">
<td>header1</td><td>header2</td><td>header3</td>
</tr>
</thead>
<tbody style="background-color: rgb(204, 204, 204);">
<tr>
  <td>hjkhjkl</td><td>hjkhjkl</td><td>hjkhjkl</td>
</tr>
</tbody>
</table>


Everything displays fine in the WYSIWYG editer or a seperate html document.  When viewed in article, the text color hasn't changed from the theme default.  I can get the results I want if I edit each cell manually (either WYSIWYG editor or adding the code by hand).  While that will get the job done, I like to have cleaner code.

Any idea how to get this to work?  Maybe a completely different way of getting the same result. I'm open to suggestions. :)