Strange margin lets content disappear behind toc

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Strange margin lets content disappear behind toc

Tobi
I've a series of pages, all with a toc on the left. For only a view of them, a margin is added to the right of the content that lets the left part of the content disappear behind the toc. What's wrong here?
That's what I want:
That's what I want
That's what I get sometimes:
That's what I get sometimes
Have a look at the unnecessary margin at the right.
Thank you in advance!
Reply | Threaded
Open this post in threaded view
|

Re: Strange margin lets content disappear behind toc

Alexander Schwartz
I assume you use a custom CSS for this layout?

Maybe some pages contain a very wide table or image. This might increase the width of the usually right aligned column, and now part of the content disappears behind the toc.

A publicly accessible minimal example might give more insights. This might be a case for general CSS/HTML advice on Stackoverflow.
Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de
Reply | Threaded
Open this post in threaded view
|

Re: Strange margin lets content disappear behind toc

Tobi
Thank you for your assistance!
I found the issue now when comparing the source code. The pages in question had the <body class="article"> instead of  <body class="article toc2 toc-left">.
The reason for this was a missing :toc: left in the adoc sources.
Reply | Threaded
Open this post in threaded view
|

Re: Strange margin lets content disappear behind toc

Tobi
I should add that I have a series of pages and I want to add a global TOC on the left containing the content of all pages.

I did this by manually adding the manually generated toc section to the individual HTML documents.

Maybe nont the best and time-efficient workaround, but it worked for me with my limited coding knowledge.