Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Modern Image Gallery?

Featured Replies

Does anybody know of any software or coding that produces the images to pop up in large scale similarly to how it works on this website...

 

www.sunblindsdirect.co.uk

 

Im thinking of adding a gallery into one of mine own websites.

 

Type in "lightbox.js" in google.

 

If this is goobledygoop to you let us know and we'll help install.

 

EDIT: Here y go: http://www.huddletogether.com/projects/lightbox2/

You may also want to try piroBox, my favourite of all the lightbox/greybox interfaces.

  • Author
Type in "lightbox.js" in google.

 

If this is goobledygoop to you let us know and we'll help install.

 

EDIT: Here y go: http://www.huddletogether.com/projects/lightbox2/

 

Sorry to be a pain, but I cant quite get it working having read the tutorial. Ive downloaded all the files and added the JS files into my header on a test page. Im just a little stuck on how to actually apply an image to a webpage so that the Lightbox works. :mellow:

  • Author

Slight update...

 

Here is the link to the page where im trying to get the tester image working. It works, but shows the image in full lower down, as opposed to loading up. If somebody could check the coding on the page? :mellow:

 

BTW, I uploaded all of the files under a folder 'lightbox' , so where it refers to 'lightbox/images/image_1' etc is altered because of the way I put it on my server but I dont think that's the reason why it isnt functioning properly...

did you remember to upload the lightbox.css file aswell?

 

EDIT:

 

where you've got:

	<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

 

should be moved to the <head> section, and should also point to the css file, which is probably in /lightbox/css/lightbox.css

 

 

Aah right, you need to link to the small image and the actual image that it will find when you click the lightbox img.

 

Should look this;

<a href="images/????" rel="lightbox" ><img src="images/??" width="??" height="??" alt="??" title="??" /></a>

 

The a href should be the larger image that you want to find. The img src will be the smaller thumbnail or whatever that will be displayed on your static page ;)

  • Author

Ive fixed it now guys sorry about that. I had a problem with this part of the code:

 

<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

 

It should have been:

 

<link rel="stylesheet" href="[b]lightbox[/b]/css/lightbox.css" type="text/css" media="screen" />

 

Now that ive added the wording in bold, it works fine. I just mixed my folders up a little. ;)

Edited by Sam G
added [code] tags

LOL, I wasnt even looking at your styling, though the images still arent loading on my page you know.

  • Author

Ohh its been a long day! :lol:

 

I didnt call the images the correct names,

 

I will promise you now though, that the three images do indeed work now. B)

No they don't.. Your lightbox is still ****ed im sorry to tell you

Add [group] after lightbox in each of your links and you'll get a sort of slideshow ;)

 

e.g.

 

rel="lightbox[0309]"

  • Author
No they don't.. Your lightbox is still ****ed im sorry to tell you

 

No really, they do. I just kept updating the page with other things and buggered it up again but it works for the rest of the evening now lol.

 

And NeRo, I didnt think of that, will have a play around with it tomorrow. ;)

  • Author

Just got another side question if thats ok.

 

I have a couple of images on this webpage:

 

www.cadwebdesign.co.uk/services.htm

 

The lightbox is working fine, although the black fading in the background of the image doesn't quite cover up the entire web page. Does something need altering on the CCS file perhaps, its already set at 100% though im sure...?

 

Chris.

Have you read a single word in this post? This is what they were talking about the whole time.

 

Another suggestion, if you have high res images and don't want to resize and are not happy with the way browsers down scale images in a gallery, with the implications of that added to your lightbox.

 

Take a look at Lightview, you will have to pay for it though if it's a commercial site and a really small donation if it is personal.

 

Lightview is the only script I know of that caters for anti aliasing, your images will never look soo good.

  • Author
Have you read a single word in this post? This is what they were talking about the whole time.

 

Another suggestion, if you have high res images and don't want to resize and are not happy with the way browsers down scale images in a gallery, with the implications of that added to your lightbox.

 

Take a look at Lightview, you will have to pay for it though if it's a commercial site and a really small donation if it is personal.

 

Lightview is the only script I know of that caters for anti aliasing, your images will never look soo good.

 

Ive not really got a problem with the images themselves and the way its scaled, but if you take a look at this link:

 

www.spence07.karoo.net/rainbow and select one of them images, they load up fine. The problem is the black fading behind the image which is supposed to cover the entire website. However they seems to be a narrow vertical patch missing on the right and at the bottom and im pretty sure its something to do with my CSS file, just not sure how to correct it.

Using the forum search facility, searching for lightbox gives numerous threads

 

This post from the thread Lightbox Question links to a solution

  • Author
Using the forum search facility, searching for lightbox gives numerous threads

 

This post from the thread Lightbox Question links to a solution

 

Thanks for pointing me in the right direction.

 

Yes I found the solution and for any of you reading in the future with the same problem, here is the solution so it saves you searching.

 

Add the tag

body{ margin: 0; padding: 0; }

to the bottom of your Lightbox CSS file.

 

That really is it! ;)

Edited by Sam G
added [code] tags

Nice work, welcome to the World of debugging.

 

There is a margin by default on a few HTML tags... Like headers h1.....h6 all have margins, so if you ever run into positioning problems try removing margins and paddings.

 

UL and OL have margins and paddings...

 

FORM in some browsers has this.

 

FIELDSETS have this

 

This is when a nice handy dandy reset file comes in.

 

A good start point for you

 

http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.