Tagged: x
-
AuthorPosts
-
June 1, 2016 at 5:20 pm #1020910
kiovicParticipantHello X,
I create a lightbox that comes from a button using short codes but I’m stuck as to how to resize the video lightbox and position it in the center so it is clear and in the center of the screen. I tried using the customizer css but I could figure out was resizing but not positioning.
Thanks
June 2, 2016 at 12:24 am #1021497
RupokMemberHi there,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
June 2, 2016 at 10:39 am #1022400
kiovicParticipantThis reply has been marked as private.June 2, 2016 at 4:27 pm #1022995
FriechModeratorHi There,
Thanks for the credentials. You can add this under Custom > CSS in the Customizer.
.ilightbox-holder.light { left: 25% !important; margin-left: auto; width: 600px; margin-right: auto; } .ilightbox-holder div.ilightbox-container { width: 100% !important; }Hope it helps, Cheers!
June 2, 2016 at 10:29 pm #1023556
kiovicParticipanthello,
thanks for the code but it does not accomplish what I want, I simply want a lightbox that is centered on the screen and not full screen.
June 3, 2016 at 2:39 am #1023782
RupokMemberHi there,
Thanks for updating. The above code should do that. Did you try that? Would you attach a screenshot after applying this?
Cheers!
June 4, 2016 at 10:37 am #1025705
kiovicParticipantThis made it full screen, it is centered, but I still want to control the size of the video because playing at full res in different screen sizes affects the viewing experience. Thank you for your patience.
June 5, 2016 at 1:15 am #1026293
Rue NelModeratorHello There,
It seems that you haven’t inserted the code properly.

Please have the code updated and use this instead:
.ilightbox-holder.light { top: 30% !important; left: 50% !important; margin-left: -300px; width: 600px; margin-right: auto; } .ilightbox-holder div.ilightbox-container { width: 100% !important; }Hope this helps. Please let us know how it goes.
June 7, 2016 at 7:09 am #1029777
kiovicParticipantYou guys are on point!
Can you guys explain the controlling factors (What do the #’s mean) in this code? I’m sure me and others in the community would appreciate this feature.
Thanks!
June 7, 2016 at 9:53 am #1030023
JoaoModeratorHi There
# means ID
. means CLASS
and tags will have nothing, for example <h1> will be just h1
but
<h1 class="hello" id="hi">will be h1 .hello #hiIf you want more information about this I reccomend you watching some tutorials about CSS selectors I personally like a youtube channel called devtips.
Hope that helps,
JoaoJoao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1020910 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
