Skip to content

position:fixed for sidebar #432

@dirkhh

Description

@dirkhh

I think this is a relatively common technique and it seems to me like it is fairly basic CSS.
I create a user manual in HTML (from a text file using asciidoctor) that uses the toc mode to create a table of contents which I then want to show as a left sidebar.
The html created appears correct (works with WebKit, WebEngine, or a regular browser), but litehtml (wrapped in qlitehtml) doesn't show the sidebar and instead shows the TOC before the main text of the page.

The key style in play here, I think, looks something like this:

#toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;
border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto}

this artifact shows you the full user manual in question, but if need be I can spend the time to trim this down to a much smaller document.

My question: is this something that litehtml shoud be able to do and I'm just doing it wrong? Or is this out of scope? Or is this a bug you'd consider fixing? And of course... how can I help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions