Topic on Project:Support desk

[RESOLVED] How can I position the table of contents

7
184.164.106.167 (talkcontribs)

Hi I am trying position the table of contents within a page.

I know that you use:

what is the syntax to position it on the right side. they say to use: float:right;

I am using the standard EDIT window.

thanks

Jackmcbarn (talkcontribs)

<div style="float:right">__TOC__</div>

Terillum (talkcontribs)

Yeah! it works

next question:

  can I setup a sub-table of contents, Not the main TOC, but a table of contents specific to the section I designate.

Main Table of Contents: 1 Description 2 Related Links 3 Solution 4 Search Strings

Sub Table of Contents - under Solution Section: 1 Startup Server 2 Check Settings . . 4 Email person... blah blah...

Terillum (talkcontribs)

I want to have multiple table of contents

Terillum (talkcontribs)

Another question - can I have the table of content float as I scroll down the page.

Jackmcbarn (talkcontribs)

MediaWiki will only generate one table of contents per page. If you want more, you'd have to build and maintain them manually. If you want it to float as you scroll down the page, you can do <div style="position:fixed;top:0;right:0">__TOC__</div> (though you'd probably want to do some tweaking to that CSS).

184.164.106.167 (talkcontribs)

perfect regarding the capability of having a floating table of contents.

- your tip helps

thanks

Reply to "[RESOLVED] How can I position the table of contents"