CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   lightbox thumbnails not showing up (http://www.codingforums.com/showthread.php?t=266980)

Kirai 07-03-2012 03:05 PM

lightbox thumbnails not showing up
 
Hi,

I've included lightbox on the website I'm building. I have got it to work functionally, however I can't get the thumbnails to work. I've tried all different image links /, ./, ../ and still only get text links working http://edenwebbdesign.se/galleri.html

Very grateful for your help,

Kirai

sunfighter 07-03-2012 06:09 PM

First off = You are not displaying any images in your HTML code:
Code:

<a href="/images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="/images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>

Your asking HTML to show 'image #1' and that's what it shows. You need to put a images tag between the anchor tags.

The thumb nails should be called thumb-1.jpg, etc. Go get those and put them into the folder with your main images. Then use
Code:

<a href="images/image-1.jpg" rel="lightbox">
  <img src="images/thumb-1.jpg" alt> />
</a>

Also get rid of all the ../ things in your head a / should work.

Kirai 07-03-2012 10:18 PM

Thanks man,

worked like a charm :)


All times are GMT +1. The time now is 06:15 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.