• Resolved irzaraz

    (@irzaraz)


    i am facing a problem not find how to change table of content position.when i click on one of table of content title its goto that section but its on top i need some space on top.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author docxpresso

    (@docxpersso)

    I am afraid that that is not customizable because it is the default behaviour of anchors in HTML.

    Best regards,

    Eduardo

    Thread Starter irzaraz

    (@irzaraz)

    Thank you very much Eduardo.Please look into my problem.Is there any way or we can add some margin to that top so its is below our header.
    Step 1: when we click any of table of content its working perfect and goto that section.
    When click any table of content
    Step 2: After that the click section is stick with top and its back to header is there any way we add some margin to top.
    its hiding before header
    Please Help.

    • This reply was modified 9 years, 6 months ago by irzaraz.
    Plugin Author docxpresso

    (@docxpersso)

    Dear Irzaraz,

    This is a little CSS hack that should work.

    Please include in the default.css file that you could find in the folder wp-contents/plugins/docxpresso/classes/ODF2HTML5 the following style:

    /*hack to get some extra top margin for anchors if needed*/
    .h5p_layout span[id^=”_Toc”]{
    padding-top: 100px;
    margin-top: -100px;
    }

    You may, obviously replace 100 by the number that shows more convenient for your purposes.

    Let me know if it works πŸ™‚

    Eduardo

    Thread Starter irzaraz

    (@irzaraz)

    .h5p_layout span[id^=”_Toc”]{
    padding-top: 100px;
    margin-top: -100px;
    }
    paste as it in that file?

    Thread Starter irzaraz

    (@irzaraz)

    thank you very much for your help.please explain that part ” span[id^=”_Toc”] ” becuase its not working yet.

    Plugin Author docxpresso

    (@docxpersso)

    I noticed that if you copy and paste from my answer the quotes are changed….please, make sure that you write standard quotes

    span[id^="_Toc"]

    and not span[id^=”_Toc”]

    That style gives extra top padding to the anchored text.

    • This reply was modified 9 years, 6 months ago by docxpresso.
    Thread Starter irzaraz

    (@irzaraz)

    Wow…thats great..its working now.

    Thread Starter irzaraz

    (@irzaraz)

    is there any way back to table of content ?if possible

    Plugin Author docxpresso

    (@docxpersso)

    You can include back links in the anchors but I would not recommend that: the “go back” button of the browser will do that jsut by itself and it is a standard behaviour.

    A review of the plugin will be nice from your side πŸ™‚

    Eduardo

    Thread Starter irzaraz

    (@irzaraz)

    Thank you very much

    Thread Starter irzaraz

    (@irzaraz)

    Review added Sir.

    Plugin Author docxpresso

    (@docxpersso)

    Thanks πŸ™‚

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Content’ is closed to new replies.