Explore the community Forums Lectora Lectora Questions & Answers page allignment center of browser window

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #368122 Score: 0
    Profile photo of Briget
    Briget
    Member
    beginner
    intermediate
    curious george
    wise owl
    contributor
    @Briget

    Hi, I would like to locate my course right in the center of the Browser window (like in the example attached).

    In Lectory you can choose centre – but the upper course rim is justified at the top of the Browser window. I have learned from Trivantis Support that tehre is no aitomatically function in the tool, but there might be a manual custom JavaScript add on. Can anybody help me with that?

    Best regards

    Birgit

    Attachments:
    #368208 Score: 0
    Profile photo of Jennifer Valley
    Jennifer Valley
    Member
    contributor
    beginner
    friend finder
    advanced
    lectora beginner
    verified member
    wise owl
    profile
    picture perfect
    curious george
    117 pts
    @jvalley4735

    Like this? https://community.trivantis.com/forums/topic/dynamically-fit-to-browser-window/

    #368314 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    355 pts
    @timk

    Which version of Lectora is it? The pages are in a div, so it’s possible to add margin-top to move the page down in the window, either a static value or by subtracting the course height from the window height to center it vertically.

    Only as the page starts at y=0 by default, you’ll see it move down, as the margin is added later. And (at least from my perspective) a vertically centered page looks a little uncommon.

    #368328 Score: 0
    Profile photo of Briget
    Briget
    Member
    beginner
    intermediate
    curious george
    wise owl
    contributor
    @Briget

    Hi Tim,

    I’m working with Lectora 17.0.5. Could you please tell me in detail how to add this margin top. My aim is to place the page centered vertically and horizontically – not with a static value, because this should work with different Solutions and devices. Thank you!

    #368386 Score: 1
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    355 pts
    @timk

    Here’s a sample. It’s all done with the “Run javascript” action on title level.

    This post has received 1 vote up.
    Attachments:
    1. Title-1.zip
    #368735 Score: 0
    Profile photo of Briget
    Briget
    Member
    beginner
    intermediate
    curious george
    wise owl
    contributor
    @Briget

    Hi Tim,

    it seems to work – thank you very much!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.