Active
Project:
Lightbox2
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2009 at 14:49 UTC
Updated:
11 Jan 2010 at 15:03 UTC
Hello,
I hope you are well.
I have been able to successfully install and use lightbox and it is an amazing module. It adds a certain amount of style to my site right away.
I would like to know how to resize the login box and the contact forum lightboxes. They both appear and work fine, but for some reasons their sizes are off -- the login box is too large and the contact forum box is too small (causes sideways scroll-bar to appear).
What do I need to do to change these?
Thank you.
Comments
Comment #1
baronmunchowsen commentedHi,
I changed dimensions via CSS - you can use firebug and/or look at the lightbox css files to work out what you need to change.
Hope this helps.
Comment #2
TheProf commentedHello,
Thank you for your response.
I didn't think it was in the CSS since I thought it is suppose to dynamically change based on the content loaded within the lightbox. I am still new to CSS and Drupal -- would you be able to point me to which css file / css definition I need to change for the contact box and the login box?
Thank you
Comment #3
TheProf commentedHello,
I hope everyone is well.
Just a follow-up to my previous message -- any recommendations about how to resolve this issue of resizing the contact form?
Thank you
Comment #4
azinck commentedNot sure if you're still needing this but I just did it for a site I was building. Disable the lighbox login and contact form feature and attach the event handlers yourself.
stick this on the page:
Adjust the width and height for each form to your desired size.
Comment #5
kvvnn commentedYou can also edit lightbox_modal.js
Comment #6
azinck commentedTrue, but it's usually bad form to modify a module directly since it makes updating the module trickier.
Comment #7
warrunner commentedAzinck, I'm sure this is a dumb question but when you say, "stick this on the page", what page is that exactly? I am trying to resize the modal login form in lightbox2 to accommodate the addition of RPX login and editing the css file doesn't work. The only place I can find the dimensions indicated in firebug is in the lightbox.js file and I don't like cats but hate to kill kittens so if you could give me a clue about where these handlers go I would be grateful.
Comment #8
azinck commentedThey can basically be anywhere on the page that's going to launch your lightbox. Either in inline js or in a linked script.