TOC unordered list: without bullets?

Hi Folks,

Just wondering if anyone has a solution for getting a TOC unordered list to render properly without bullets?

I can remove the bullets of course with list-style: none, but I still get left hand padding as if the bullet is still there!

I notice all the CM templates have bullets in there auto generated TOCs, but I imagine they hand craft it for their own newsletters... or have I missed a trick?

Jim

davidaf davidaf, 7 years ago

Hey Jim,

You can wrap whatever HTML you like around the table of contents, you don't have to use a list at all. For example:

<tableofcontents>
   <div>
      <$repeatertitle$>
   </div>
</tableofcontents>

or

<table>
  <tableofcontents>
    <tr>
      <td>
          <$repeatertitle$>
      </td>
    </tr>
  </tableofcontents>
</table>

The Campaign Monitor Blog – HTML email smarts to go with your good looks

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free