Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-03-2012, 03:05 PM   PM User | #1
Kirai
New Coder

 
Join Date: Jun 2012
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Kirai is an unknown quantity at this point
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
Kirai is offline   Reply With Quote
Old 07-03-2012, 06:09 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
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.
sunfighter is offline   Reply With Quote
Old 07-03-2012, 10:18 PM   PM User | #3
Kirai
New Coder

 
Join Date: Jun 2012
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Kirai is an unknown quantity at this point
Thanks man,

worked like a charm
Kirai is offline   Reply With Quote
Reply

Bookmarks

Tags
lightbox

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:05 AM.


Advertisement
Log in to turn off these ads.