Topic on Project:Support desk

Jump to: navigation, search
Zipacna1 (talkcontribs)

Hi. Is there any possibility to make a TOC in multiple columns?

Normal is this: picture1

And i need something like this: picture2

Thanks for help.

Fereal (talkcontribs)

Hi, try adding this to CSS:

.toc ul li {
 display: inline-block;
 vertical-align: top;
}
.toc ul li ul li {
 display: block;
}

You may also want to add some padding properties. ul li are entire block sections (1 A test, including 1.1 A1 test, 1.2 A2 test) while ul li ul li contain the individual links to the subsections (1.1 A1 test).

Zipacna1 (talkcontribs)

Very pretty, thank you very much. Any chance do the same only for one page?

Fereal (talkcontribs)

G'day, Try searching for an extension that sets per-page CSS.

Edit: Try Extension:CSS

Ciencia Al Poder (talkcontribs)

Every page has a CSS class applied to the body element with the page name (this one is "body.page-Project_Support_desk"). You may put it to the CSS selectors so they apply only to a specific page.

Reply to "TOC in more columns"