How To Create Image Gallery Using HTML, CSS and Javascript | Lightbox Gallery

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 291

  • @davida6883
    @davida6883 6 років тому +14

    you make some of the best tutorials, directly to the point, dont waste of time , thanks a lot dude.

  • @BuzzyBeeNexySerbia
    @BuzzyBeeNexySerbia 4 роки тому +14

    I just wanted to tell you that you saved me and my exam for tomorrow, thank you!

  • @Batareika007
    @Batareika007 3 роки тому

    I've been searching the net for over a week to find something easy and useful, thanks a lot for this tutorial!

  • @gianlucatiengo7306
    @gianlucatiengo7306 4 роки тому +3

    I like very much... just one question... Arrow and X to quit doesn't appear. i mean if i click on the spots where normally they are, it works just don't show up arrow and X ... any advise? Thank you!

  • @BamBam-je4yf
    @BamBam-je4yf 4 роки тому +1

    i am a newbie with that html stuff and i see lots of negative comments around here, crying about ''oh it's not working :('' WELL THEN MAKE IT WORK, there is google, if you're having a problem, solve it. This guy here made an incredible video, and tbh it took me 40 mins to find a solution to something that was bothering me. It just takes time, you can't just come here and get the source code or just write the same stuff he wrote and expect wonders. Thanks Clever Techie.
    LIke i mentioned, all the problems you have/had are mentioned in google, for those who couldn't see the arrows/X/loading gif . stackoverflow.com/questions/9864818/lightbox-2-on-html-site-next-previous-gifs-not-showing . Changing the name of the directory worked for me, in the lightbox file.css took me another 40 mins to solve this easy shit but still, don't complain, just use your brains. Your negativiry affects other users who come here to learn something, if they see only negative comments nobody will try to watch the video -.-

  • @ArifHussain-gf2jz
    @ArifHussain-gf2jz 2 роки тому +1

    My senior told me to create like this,and I got this awesome video,
    Many thanks for you valuable video 😊😊

    • @clevertechie
      @clevertechie  Рік тому

      I appreciate that, glad you found the video to be valuable!

  • @uriel6673
    @uriel6673 6 років тому +19

    Thought I was going to practice some JavaScript but it’s still a good vid tho

    • @chippandenga6722
      @chippandenga6722 2 роки тому

      😂😂🤣 I saw your comment but was still curious. No is at all.

  • @mariocarnival
    @mariocarnival 5 років тому +2

    You know...? Actually, I am not using TWO sizes for the images like one small for thumbnail and the big display, no. Just one JPG file per image, to make it small/thumbnail, just apply some CSS on the thumbnails grid/nav images, what do you think about it?

  • @wafflemaru4597
    @wafflemaru4597 4 роки тому +2

    Thanks a lot. It works as you told. I'm working on my online portfolio for my internship. RESPECT!

  • @nowrajrai8965
    @nowrajrai8965 4 роки тому +1

    Yes! it worked...Thanks you
    Clever Techie.. You are the best....

  • @raymondbedard3272
    @raymondbedard3272 4 роки тому +21

    worked fine except for the navigation arrows..
    I did a little research...(= I lost a few more hairs LOL)
    The latest version of lightbox does not expect the image files to
    be in the same folder as the images....
    My folder was Images_htm... I found that lightbox was actually looking
    for the images in.... wait for it.... in a subfolder .... named....
    images ..... I created a folder in Images_htm named images ,
    put the files in there and all was good.....
    (did not have to edit the css file)

    • @IRM2
      @IRM2 4 роки тому +1

      I have the same issue; My initial folder had a different name, I also created a sub folder named "images", I have all files (pics + 4 mg files), still doesn't show the buttons...Any suggestions?

    • @IRM2
      @IRM2 4 роки тому +8

      nvm, figured it out. In the lightbox.min.css, just change the "images/close.png)", to whatever the folder name is. And if you have subfolder, change it to "/folder/subfolder/close.png)", and your done. Cheers for the video.

    • @rasulali4690
      @rasulali4690 4 роки тому +1

      @@IRM2 thank u bruh, saved my time :)

    • @shrutikarpe4700
      @shrutikarpe4700 4 роки тому

      @@rasulali4690 hey I exactly couldnt get it could you please explain inbrief as I am getting the same issue

    • @shrutikarpe4700
      @shrutikarpe4700 4 роки тому

      @@IRM2 could you please explain in brief as m getting the same issue

  • @DaviePlaysGuitar
    @DaviePlaysGuitar Рік тому

    HI excellent tutorial thanks you. I have followed it and have a gallery ready to incorporarte on my website but I would like more control over the image size - your example has a row of 4 images but mine displays 6 on each row, can you advise hiow this is determined please?

  • @sturgeburger
    @sturgeburger 3 роки тому +1

    at 2:35 , how do you copy all the corresponding image tags without manually typing them??

  • @SquareEarth1
    @SquareEarth1 4 роки тому

    THANKYOU!! Been looking for something like this that actually works. I really like your tutorial style - easy to follow.

  • @AlisonDurazo
    @AlisonDurazo 6 років тому +2

    In addition, I would like to use this gallery for videos as well but it does not seem to pop up, it goes to the direct link. How can I keep it working even by adding video to the gallery?

  • @joandemello
    @joandemello 3 роки тому

    Thanks it was so good making my galary with the lightbox. Well explained

  • @haccuk
    @haccuk 4 роки тому +1

    That's really good thank you. Can you tell me what programme you use for bulk resizing of small images. I assume they all have to be the same size or proportion?

  • @JelleRuben
    @JelleRuben 5 років тому +1

    Nice video, but why two images of one picture? You can sizesed in the code? Or is the smaller images for the performance?

    • @mariocarnival
      @mariocarnival 5 років тому +1

      It's almost the same I asked him. I used the biggest one and then in CSS I scale it down to be shown as thumbnails, but maybe they could be heavy... I have to try...

  • @exogendesign4582
    @exogendesign4582 3 роки тому +1

    I was wondering will lightbox also work if I fetched images directories from database? I want to use backend PHP with this. will it work? I have no knowledge yet in web but I create a lot of desktop API, from your experience will it work?

  • @GrantDavis
    @GrantDavis 4 роки тому

    Index values are off somehow, such that when I have 3 photos is thinks I have 4 photos. I am also able to click through to the 4th photo (which doesn't exist) and its just another version of the 3rd photo. The javascript is also so unreadable finding the error in the index checking is impossible. I was able to modify the index display so that it shows that there are 3 photos, but it still will go to the fake 4th photo. I guess this lightbox code isn't meant to be modified...

  • @glimdark
    @glimdark Рік тому +1

    which code editor are you using

  • @freektom
    @freektom 3 роки тому

    Nice Thank you so much, my question is, how to change the background color of the entire gallery to black??

  • @jonathancarter2347
    @jonathancarter2347 5 років тому

    If you're using v2.11.1, you may have to put deal with the navigation buttons before lightbox works at all. Seems mine wasn't working until I did that. And thanks Clever Techie.

    • @glimdark
      @glimdark Рік тому

      which code editor was he using

  • @elyorbekaliev4005
    @elyorbekaliev4005 Рік тому

    Thank you buddy, that was great, but could you please help me how can I make its background transparent, because it made my background white totally, nothing left, thank you

  • @axender269
    @axender269 5 років тому +3

    I was looking forward to learning the vanilla JS behind lightbox applications. A decent video for those beginners looking to use premade tools though. Oh well

  • @donborjuto7321
    @donborjuto7321 5 років тому +6

    What size in px are your small images?

    • @dan32663266
      @dan32663266 5 років тому

      I did 200 x 200 which is a square his look like they might be 250 x 200?

  • @andrewjwentzel9349
    @andrewjwentzel9349 3 роки тому

    That was the most helpful and simplest explanation! Thanks!

  • @danishmirza5857
    @danishmirza5857 4 роки тому +2

    Well good but at the last my gallery img did not show next previous buttons

  • @hakana8597
    @hakana8597 4 роки тому

    Thank you very much for the video. Lightbox is working perfectly but grayscale, scale 1.1 and hover properties do not work. I can see these properties are working when I am in Dreamweaver split mode. When I built a site preview, I could not see these properties. Do you have any idea what may cause this problem?

  • @khaledalkhder9110
    @khaledalkhder9110 5 років тому +1

    hi, is it free to use LightBox plugin as a commercial use?

  • @bhanukaweerasekara9474
    @bhanukaweerasekara9474 4 роки тому

    It worked...! Thank you very much...! Keep up the good work.

  • @olsenstern
    @olsenstern 3 роки тому +2

    Thank you very much for this great tutorial. It is well explained, well told, it is just brilliant!

  • @alainroos5383
    @alainroos5383 4 роки тому

    short and to the point ! Thank you !

  • @jonathancarter2347
    @jonathancarter2347 5 років тому +3

    All worked fine in VS code but when uploaded to GitHub, it functions but the nav images don't show. Ideas?

    • @kovacssandor796
      @kovacssandor796 3 роки тому

      change your images directory name to "images" and put inside all of your images

  • @pluis1570
    @pluis1570 5 років тому +3

    Hey !
    I just tried it , but for some reason i dont see the buttons appearing while on the pictrue , the clicking left and right works . but can't see the buttons . Do you have any ideo how to fix this ?

    • @pluis1570
      @pluis1570 5 років тому +4

      @connor abbas came up with the soultion :
      "I had the same problem, it has to deal with the file structure of your project and where you stored the images. Just go into the lightbox.min.css file and change the path of the images. It should say... background: url(../images/prev.png) left 48% no-repeat; Just change it to the correct path of where your image is. If you have all your files and images in one project folder just change it to background: url(prev.png) left 48% no-repeat; That applies to all the icons and loading gif. Hope this helps!"

    • @adrianmoser2295
      @adrianmoser2295 5 років тому

      I had the same problem. The problem is that you get gif when you duplicate it (on my Mac). You should change the picture from gif to png.

    • @KostasNezis
      @KostasNezis 5 років тому

      @@pluis1570 Hello. I did everything with the icons and i have the same problem. No icons appear. I use Sublime text 2 for coding. What's the problem ?

    • @pluis1570
      @pluis1570 5 років тому +1

      @@KostasNezis have you changed the path in the lightbox.min.css file ?

    • @alliwell2075
      @alliwell2075 5 років тому

      @@pluis1570 Thankyou so much man! I wouldn't have found it without your comment :/ Had to get rid of the ../images and change it to jut IMG/

  • @inesreisx
    @inesreisx 4 роки тому

    hi, this looks very good, is it mobile friendly?

  • @saneichavakkadan2
    @saneichavakkadan2 4 роки тому +1

    Navigation arrows and close button not shown. But every mouse click of same place are work well. How to show these png, gif files? Thanks in advance

    • @gatzestreicheln3226
      @gatzestreicheln3226 4 роки тому

      No images (arrows) showing up fix:Open the lightbox.min.css (css file), and edit the folder name*.
      Read through the text and where it says images, change it to your images folder name, and if the images are along with the html files, just remove the text "images".
      I had to change the text form images to img.

    • @sholaidowu7660
      @sholaidowu7660 11 місяців тому

      where is the folder name bit
      @@gatzestreicheln3226

  • @DanisPhotographe
    @DanisPhotographe 5 років тому +1

    Hi, do you have a video that explain how to get pictures from a folder on your web server, wihtout having to right the name of the hundreds of images in that folder ?
    Thanks

  • @nashaatsalah7872
    @nashaatsalah7872 3 роки тому

    Hello, VERY NICE WORK!! but final result with me did not showing the arrows or close marks it works but not show off why ? and how to fix?

  • @malintha_prasad
    @malintha_prasad 5 років тому +1

    Worked 100% perfectly.. thank you verymuch !!!

  • @ashraffaly7915
    @ashraffaly7915 3 роки тому +1

    Thanks a lot. Its very helpful.

  • @sabinechancel
    @sabinechancel 4 роки тому

    It works ! Happy New year Sir !

  • @DavidAshby1
    @DavidAshby1 3 роки тому

    Thanks for the tutorial. Almost everything is working as intended however when I view on a mobile device the larger image only opens at the size of the thumbnail. When I view using Chrome and firefox for mobile devices it opens as expected. Any ideas ?

  • @surnlihengtechnology1958
    @surnlihengtechnology1958 5 років тому +3

    How do you get the picture small and big?

    • @milanveres9921
      @milanveres9921 5 років тому

      go in paint for example if you dont have photoshop so: paint > open > image.jpg > resize > pixels > 1000px > 500px > 250px > u save it as small_image.jpg and ur done!

  • @luciddoggo5094
    @luciddoggo5094 4 роки тому +1

    How do you make thee small version of the images?

  • @themiyajayakodi4052
    @themiyajayakodi4052 3 роки тому

    Amazing Tutorial, no words to say

  • @Misc_useful
    @Misc_useful 2 роки тому

    Beautiful smart explanation

  • @redseantlworld
    @redseantlworld 4 роки тому

    Wow! One of the best tutorials out there...thanks man.

  • @balajikrish5136
    @balajikrish5136 5 років тому +1

    Hello sir, how to make next and previous button in the image viewer visible.

  • @rodrigoitit
    @rodrigoitit 3 роки тому +1

    Awesome! Thanks for sharing.

    • @clevertechie
      @clevertechie  Рік тому

      Of course! Glad you found the video to be awesome!

  • @capstone-switzerland3071
    @capstone-switzerland3071 5 років тому

    Hello Thanks you a lot. It works very well. I just have a little problem! Wenn I have a vertical picutre in my gallery it s ok but in the lightbox it turn 90°! Do you know how I can make that a vertical picture is shawn and stay vertical in the lightbox? Thanks.

  • @darkerarts
    @darkerarts 4 роки тому

    Is there a way of adjusting this to make a website visible in the Lightbox? I would like to be able to put a link to a gallery website instead.

  • @woelneberg
    @woelneberg 3 роки тому

    When I added this my w3 style stopped working? Can't these styles be combined?

  • @natashapramodsawant6157
    @natashapramodsawant6157 3 місяці тому

    easy to learn and understand code

  • @ashokk9289
    @ashokk9289 3 роки тому

    Thank you sooo Much for this Excellent tutorial

  • @TradingWithGichuru
    @TradingWithGichuru 3 роки тому

    This is it. This is the video. Thanks

  • @AlisonDurazo
    @AlisonDurazo 6 років тому +1

    this does not work with explorer, it is also causing trouble whenever I use a nav bar or add a logo at the top in firefox. the hover works but not the pop up.

  • @matty965
    @matty965 5 років тому

    I did the same, but when my website is online the lightbox doesn't work. It just displays the image without any arrow. To select another image I have to click back in Chrome. Do you know how to fix this issue?

  • @avadheshmaurya1972
    @avadheshmaurya1972 5 років тому

    Nice explanation Thanks. Can you please tell me that this gallery page is responsive or not? Pls do the needful or the same.

  • @ThrReAlMaDrIdBoY7
    @ThrReAlMaDrIdBoY7 3 роки тому

    Thank you! Very good Video

  • @gothfrog69
    @gothfrog69 Рік тому

    Thank you, sir!

  • @sk3424
    @sk3424 2 роки тому

    thank you so so much , you are the best , saved my life bro!!!!

    • @clevertechie
      @clevertechie  Рік тому

      you're welcome brother man, glad I could help!

  • @baykus790
    @baykus790 4 роки тому

    amazing tutorial. i learned many cool stuff

  • @Zabarion
    @Zabarion 4 роки тому

    This was really usefull for me thanks a ton!

  • @simonjolet4881
    @simonjolet4881 4 роки тому

    Great Video, thanks a lot !!
    It helped me very well

  • @JockimStbernard
    @JockimStbernard 3 роки тому

    This was very usefull thanks for the great tutorial.

  • @bayareakidsclub5999
    @bayareakidsclub5999 3 роки тому

    How did you copy and paste all of the images to insert into html?

  • @mrlevo27
    @mrlevo27 4 роки тому

    is ist possible to use the lightbox with video too?
    i have a mixed gallery :/

  • @PavelKostal
    @PavelKostal 4 роки тому +1

    Anyone know how to use with Java in jsp files. It works great, but I don't see images: close.png, loading.gif, next.png, prev.png

  • @stevesass8184
    @stevesass8184 5 років тому +1

    Thank you for this tutorial!

  • @UsaM
    @UsaM 6 років тому +5

    nice, but I'n having trouble put things on a single page like : A drop down menu then insert this somewhere and make it appear in a single page

    • @lirigzonizeti7143
      @lirigzonizeti7143 4 роки тому

      dude u should have in the same place photos and file u created otherwise the photos doesnt work

  • @OusmaneJustinGuiro
    @OusmaneJustinGuiro 4 роки тому

    hello, hope you're good, thanks for the video and i wanna say that, I'm watching this video from Africa so stop thinking Africa is a jungle

  • @andrewandrosow4797
    @andrewandrosow4797 3 роки тому

    Hello! Nice work! Thank you very much!

  • @rottenblade4238
    @rottenblade4238 6 років тому +1

    will u please make a video on creating dynamic header using javascript

  • @stylewithyamini
    @stylewithyamini 4 роки тому

    How to change the place of prev next and close button??? And how can we add title of the image??? Please help

  • @niharkashyap3897
    @niharkashyap3897 5 років тому

    Can i use this for videos as well?

  • @christianek.963
    @christianek.963 4 роки тому +2

    Thank uuu, I really needed this!!

  • @oricketts5076
    @oricketts5076 3 роки тому

    Can you change caption font/size?

  • @jakubsluka4168
    @jakubsluka4168 4 роки тому

    this is what I was looking for! Much appreciated. Lets see how it works for me :)

    • @jakubsluka4168
      @jakubsluka4168 4 роки тому

      After some struggle it works! Thank you.

    • @aeiouaeiko
      @aeiouaeiko 3 роки тому

      what app did u use?

    • @jakubsluka4168
      @jakubsluka4168 3 роки тому

      What_do_you_mean_by_app?_I_used_Visual_studio_and_ASP._NET_Framework_but_It_should_work_just_fine_with_Whatever_IDE_you_use._Its_just_javascript_library_you_need_to_refference
      Sorry_my_spacebar_does_not_work_for_so,e_reason....

  • @mucahidadnancanbilgin6469
    @mucahidadnancanbilgin6469 3 роки тому

    thank you awsome tutorial but (next,prev...).png can't working. which way should i fix

  • @trippy_b
    @trippy_b 2 роки тому

    why did you write data-lightbox = "mygallery" and where is this is used? where is the JS Code?

  • @TrangLe-dp8jf
    @TrangLe-dp8jf 3 роки тому

    can you tell me the size of your small images?

  • @pierfabio75
    @pierfabio75 4 роки тому

    very good tutorial. Thank you

  • @tang3151
    @tang3151 4 роки тому

    I added 6 images only 3 are showing up. They're different sizes. 3 are showing up on the browser and the other 3 aren't but they're alternative text is showing. Idk what's happening.

  • @ansmesserschmidt6124
    @ansmesserschmidt6124 5 років тому

    Thanks!! Its working great!

  • @Dominik-wg1yl
    @Dominik-wg1yl 3 роки тому

    Next, previous, loading and close do not show on my website. Do you know why? Thank you

  • @dawidlorek363
    @dawidlorek363 5 років тому

    and boom its working

  • @karuvifoundation2857
    @karuvifoundation2857 4 роки тому

    how to implement this in blogger.. cant able to add lightbox css to blogger.. help needed..

  • @ruchitamore7391
    @ruchitamore7391 3 роки тому

    How can i get all this image gallary inside a button...like after clicking button how can i display this image gallary

  • @jakubvorel4416
    @jakubvorel4416 3 роки тому

    how to edit the "alwaysShowNavOnTouchDevices" ?

  • @rathernotdisclose8064
    @rathernotdisclose8064 6 років тому +9

    2:36 where the hell did that clipboard data come from?

    • @DJAtom
      @DJAtom 4 роки тому

      he just copied href files above lol

  • @akaraonyestephen5516
    @akaraonyestephen5516 3 роки тому

    you rock man !!! i subbed keep the good work up

  • @dennisasamoah2213
    @dennisasamoah2213 3 роки тому

    was really helpful

  • @Y0y0Jester
    @Y0y0Jester 3 роки тому

    Hmmm, what do I do if I have a gallery of 1000 pictures? I need to know how to add them programmatically through javascript.

  • @ankitaumredkar8368
    @ankitaumredkar8368 3 роки тому

    Here you are mentioned close next button tutorial. I want this

  • @andreigodunov330
    @andreigodunov330 3 роки тому

    how you change path for (close, next,prev) icons?? When i run the console it make error by looking for them in localUser/desktop/images folder .

    • @andreigodunov330
      @andreigodunov330 3 роки тому

      I've been reading comments , seems like many people had same issue , basically code doesn't work correctly (tried to search in the Js file for mentioning icon path could not find anything )

  • @arockiyaselvi8905
    @arockiyaselvi8905 6 місяців тому

    Thank you .

  • @matyastoman8569
    @matyastoman8569 4 роки тому

    Very nice tutorial

  • @silviafricova1779
    @silviafricova1779 2 роки тому

    Really great tutorial, thanks a lot! You explain very well so I can´t wait to learn from you more. I subscribe.

    • @clevertechie
      @clevertechie  Рік тому +1

      Glad you liked it, thank you for subscribing!

  • @Chineization
    @Chineization Рік тому

    I got an issue that I have a video in the gallery that is not playing. please help. thanks!