Loading...
 
Skip to main content

Development


Beginner's problem with expandable list

Hi, everybody!

I would like to create a list which provides expandable area. I use this:

Chapters
*-first
*second
*third

Any data.

This produces:

Chapters

[-]

* first
* second
* third


Any data.

This code creates an empty line after the Chapters. I wouldn't like to get an empty line between Chapters and [-]. How can I solve this problem?

Million thanks for the solutions.:-)

Heading tags generally have white space added below them. For whatever heading you are using (h2, h3, etc.), you'll have to reduce the white space (margin) in the CSS file of the theme you're using.

This might have not have a good effect for other instances of the heading, though. Alternatively, you could give .link a negative top-margin (the plus/minus anchor is class="link"). I don't know where else a class="link" is used though, so there could be unwanted effects. To reduce the scope to the wiki page content, in the CSS file use something like .wikitext a.link {margin-top: -1em}.
-- Gary