Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sk3pt1c

macrumors 6502a
Original poster
Nov 29, 2005
918
6
a simulacrum
this is the page here,
when you click on any of the bikes you're supposed to see a lightbox with an enlarged image of the bike with it's technical data.
what it does now (for only the first image that i've added the rel to) is open up the enlarged image almost out of sight and without blacking out the rest of the window.
i added slimbox, which is a mootools lightbox cause i didn't want jQuery to conflict with mootools that joomla uses, slimbox works by adding a rel="lightbox" in the link tag.
any ideas why it isn't working? thanks in advance! :)
 
cmd+option+c tells me that there is an invalid character in the slimbox.css.

There are all these #lbOverlay, #lbCenter and #lbImage divs that don't have any CSS rules applying to them in the inspectElement pane.
 
cmd+option+c tells me that there is an invalid character in the slimbox.css.

There are all these #lbOverlay, #lbCenter and #lbImage divs that don't have any CSS rules applying to them in the inspectElement pane.

for some retarded reason i had set the type of slimbox.css to text/javascript, must've been a ****ed up copy/paste somewhere, set it to text/css and it doesn't throw errors but that doesn't fix the problem with the image dropping to the bottom left...
 
for some retarded reason i had set the type of slimbox.css to text/javascript, must've been a ****ed up copy/paste somewhere, set it to text/css and it doesn't throw errors but that doesn't fix the problem with the image dropping to the bottom left...

Oh you were so close. Its not a script, it shouldn't be in a <script> tag. It should be in a <link/> tag.
 
Oh you were so close. Its not a script, it shouldn't be in a <script> tag. It should be in a <link/> tag.

:D :D seriously, i have been doing this for four years now, i don't understand why i'm making these rookie mistakes... :confused::confused::confused:

ok, it pops up properly now but is still the same narrow size... i honestly can't see past my finger on this, it's driving me insane, i must be too tired...

----------

it's supposed to auto adjust to each image's size but mine are all 800x600 so i just set that size to #lbImage and it works ok now.

thank you so much mate, it takes someone else to look at what you've done to see the most simple mistakes i guess, i must've been too tired to debug it properly, i feel so ashamed :(
 
:D :D seriously, i have been doing this for four years now, i don't understand why i'm making these rookie mistakes... :confused::confused::confused:

ok, it pops up properly now but is still the same narrow size... i honestly can't see past my finger on this, it's driving me insane, i must be too tired...

----------

it's supposed to auto adjust to each image's size but mine are all 800x600 so i just set that size to #lbImage and it works ok now.

thank you so much mate, it takes someone else to look at what you've done to see the most simple mistakes i guess, i must've been too tired to debug it properly, i feel so ashamed :(

Yeah, rubber ducky debugging. :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.