• Resolved maringorama

    (@maringorama)


    hi.

    i would like the fancy box to be exactly above the main field. i try in vain.

    i use the following custom CSS:
    .fancybox-container {
    position: fixed !important;
    width: 1024px !important;
    height: 800px !important;
    margin-top: 100px;
    margin-left: auto;
    overflow: hidden;
    z-index: 999999998;
    }

    i am sure i got it all mixed up with the position etc.

    thank you !

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Miha

    (@mplusb)

    Hi @maringorama,

    Thank you for reaching out to us!
    I am not sure I understand where you’d like the lightbox to be. Can you please explain a bit more?
    If you remove the code above it looks/works as it should.

    Warmly,
    Mihaela

    Thread Starter maringorama

    (@maringorama)

    hi mihaela,

    i would want it to be max. 1024px wide and 800px high.
    i want it to be exactly OVER my actual website which is 1024px wide
    in the middle of the page, vertically and horizontally.

    ??

    as soon as i change the max-width, it is ALL OVER the page, huge, getting too big ??

    thank you !

    Thread Starter maringorama

    (@maringorama)

    Hi.

    My Lightbox is floating left. although I do not have anything telling it to do so. I would like it to be exactly above the page below .. but uh .. I get it all wrong. custom CSS:

    body .modula-fancybox-container {
    text-align: center !important;
    max-width: 1024px !important;
    max-height: 950px !important;
    top: 250px;
    margin: auto !important;
    z-index: 999999998;
    }

    any idea ?

    Plugin Support Miha

    (@mplusb)

    Hi @maringorama

    Thank you for explaining!
    Can you please remove all the CSS added so I can take a look and send you a new one?

    Warmly,
    Mihaela

    Thread Starter maringorama

    (@maringorama)

    Hi Mihaela, thank you. all custom CSS is removed now ??

    Plugin Support Miha

    (@mplusb)

    Hi @maringorama,

    Please try this code:

    body .modula-fancybox-slide--image .modula-fancybox-content {
        max-width: 1024px !important;
        width: 100% !important;
        height: auto !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate( -50%, -50% ) !important;
    }
    body .modula-fancybox-slide--image .modula-fancybox-content .modula-fancybox-image {
        position: relative;
        top: auto;
        left: auto;
    }

    Warmly,
    Mihaela

    Thread Starter maringorama

    (@maringorama)

    Hi Michaela, wow thank you this almost did it for me ??

    Only had to change 1 thing:
    body .modula-fancybox-slide–image .modula-fancybox-content .modula-fancybox-image { position: relative;
    top: auto;
    left: -7px; <<—— (the fancy box page has no scroll-bar, so it was too much right)
    }

    But still, one thing is missing. I would like THE CONTAINER to be only 1024px wide. to also have the picture count, the X for closing it and the < and > “inside” my page.. Do you know what I mean ?

    thank you so much so far !! hope we find a solution.. best, Alexandra

    Plugin Support Miha

    (@mplusb)

    Hi @maringorama,

    Can you please remove the code I first sent and add this one:

    body .modula-fancybox-container {
        max-width: 1024px !important;
        width: 100% !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate( -50%, -50% ) !important;
    }

    Warmly,
    Mihaela

    Thread Starter maringorama

    (@maringorama)

    Hi, thank you @mplusb !

    this ALMOST gets it right. i still need to get it 7px further left. See here : https://www.jottacloud.com/s/1174b87f9ed3a484c44bed1636e298a711e
    (on the left you see your older code + the little bit that I had added before which is not working any more grrr.)

    any idea ?

    Plugin Support Miha

    (@mplusb)

    Hi @maringorama,

    Sorry for the late reply – missed your response.
    Can you please re-add the code so I can investigate again?

    Thank you!
    Mihaela

    Thread Starter maringorama

    (@maringorama)

    Dear Mihaela (@mplusb), the code I used for the screenshot is on the screenshot.
    The code I use now, which is OK working on computer (but not on phones or pads – too much left on them), is this one:

    body .modula-fancybox-slide–image .modula-fancybox-content {
    max-width: 1024px !important;
    width: 100% !important;
    height: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate( -50%, -50% ) !important;
    }

    body .modula-fancybox-slide–image .modula-fancybox-content .modula-fancybox-image {
    position: relative;
    top: auto;
    left: -7.5px;
    }

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘fancybox position’ is closed to new replies.