Page MenuHomePhabricator

change the toc from <table> to <div>
Closed, ResolvedPublic

Description

Author: alistrius

Description:
actually, a <table> is used for hack the dispay of the #toc (makes the right border sticks to the text instead to its parent right border.

With apropriate internal stylesheet it displays well, but when an external stylesheet is used with visible tables, it becomes very ugly.

I suggest something like

#toc{float:left}
h2 .firstHeadline{clear:left} /* a firstHeadline class is needed because h2:first-child is used by the #toc headline itself, and :first-child doesn't work with IE */

So we can change

<table id="toc" class="toc" summary="Contents">
<tbody><tr>
<td>
[blabla]
</td>
</tr>
</tbody></table>

to

<div id="toc" class="toc" summary="Contents">
[blabla]
</div>


Version: unspecified
Severity: enhancement

Details

Reference
bz10592

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:52 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz10592.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

*** This bug has been marked as a duplicate of bug 658 ***