All tables I create in my Drupal 6 sites display a faint horizontal line at the top, even though there's always a border value of zero. See screenshot attached (this is from Firefox 7 but it also happens in IE8.)

I don't actually know if this is an issue related to the Wysiwyg editor but it also happens on a Drupal 5 site I run with the same editor setup.

The actual html in my example (edited a bit to remove boring content) is:

<table border="0">
<tbody>
<tr>
<td align="left" valign="top">
<p>content content content</p>
</td>
<td align="left" valign="top">&nbsp;</td>
<td align="left" valign="top">
<p>content content content</p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
CommentFileSizeAuthor
horizontal line at top of table.jpg81.83 KBthoughtcat
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TwoD’s picture

Status: Active » Postponed (maintainer needs more info)

I think this might be an issue with your theme's stylesheets. If you use a developer tool like Firebug for Firefox to inspect the HTML of the table you should be able to see which styles are applied to it. It should tell you the selector used to target the table and on which like in which file the style rule is. (Disable CSS Aggregation/Optimization to get the correct file/line.)

Does that help?

thoughtcat’s picture

Thanks! Yes, it does help :) Using Firebug and Web Developer I've found this class in the defaults.css:

table {
border-collapse: collapse;
}

Not being a CSS guru I'm not sure of exactly how border-collapse works but if I change "collapse" to "none" it removes the horizontal line.

I've only checked this against the table in question though - not sure if it'll negatively affect other objects in my site.

If it's in Drupal's defaults.css stylesheet I'm surprised nobody else has this problem?

TwoD’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I'm not sure exactly why this style property causes a problem here, but I'm glad you found a solution.
I'll be closing this as fixed now, if you don't mind. Sorry for the delay. ;)

TwoD’s picture

Issue summary: View changes

amended to clarify that the issue appears in IE and FF