Responsive Image Gallery Layout using CSS Grid | HTML and CSS Tutorial

Поделиться
HTML-код
  • Опубликовано: 6 янв 2025

Комментарии • 110

  • @randytoney3326
    @randytoney3326 3 года назад

    Super video! I applauded for $5.00 👏👏

  • @icemann155
    @icemann155 3 года назад

    THANK YOU! I've been stumbling through tutorials trying to figure this out and your video helped me finally piece it all together. Now the trick is to see if I can do it on my own! Thanks again!!

  • @EdwinMactalMusic
    @EdwinMactalMusic 5 лет назад +5

    Ive been searching this for months, i couldnt find a video on it so for the meantime i watched your other videos,
    now you randomly upload this video, yay! i can piece what i've learned altogether :")

  • @TuTran-se
    @TuTran-se 4 года назад +2

    Great video. A quick trick: set the tag with 'min-height: 25 rem'. Instead of calculating the height manually. It totally works as expected. You can try it.

  • @rafaelbrasil5303
    @rafaelbrasil5303 2 года назад

    Dude you tutorial is freaking awesome thank you, super helpful.

  • @crystaldesarrollo3720
    @crystaldesarrollo3720 4 года назад +3

    Hi, excelent video! I only have one question. How do I make the image goes small again once I have clicked over it and have it full screen?

  • @bernoGarcia
    @bernoGarcia 3 года назад

    Hello Julio. Thank you for the video. But I can't display the icons. Seems like it works different know. No link for the head, but script. Even though I follow the instructions on the official page it seems like I am still doing something wrong. The icons dont display

  • @kayleighflaherty5339
    @kayleighflaherty5339 5 лет назад +17

    This is the exact vid I wanted to search and it magically popped up on my phone at the perfect time gooood shit Thank u for what u do

  • @DJalem
    @DJalem 5 лет назад

    This is by far the best Image gallery tutorial done with css grid. Imagine doing this with flexbox or older technique omg this would be pain in ass :). I learned so much from this tutorial , thank you julio.

    • @juliocodes
      @juliocodes  5 лет назад

      Of course! Grid makes complex layouts a breeze. Thanks for watching, Alem!

  • @udaykulkarni5639
    @udaykulkarni5639 5 лет назад

    You my friend have some extraordinary skills.. Please never stop making such videos.. We learned so much from your videos.. Great content :) love from India

  • @programmerexpert7712
    @programmerexpert7712 2 года назад

    Thank you for the hardest tutorial😁

  • @swarajgogoi9668
    @swarajgogoi9668 4 года назад +1

    Thanks bro. worked like magic

  • @dimitarkocevv
    @dimitarkocevv 4 года назад +1

    Hello guys, when i finish the desktop layout and import all photos, and refreshed the page to see the result, the page starts to load veeery slow, i tried to reduce the image quality a lot, but it does not change a lot, can someone help ?

  • @dusannikolic9944
    @dusannikolic9944 4 года назад +1

    I am wondering why did you put image both in html and as a background in css?

    • @juliocodes
      @juliocodes  4 года назад +1

      I placed the path to the image within the tag while the 'thumbnail' as a background image. I did it this way just in case that someone wanted to play around with it using javascript to make it functional. By clicking on the image then opening it in something like a modal.

    • @dusannikolic9944
      @dusannikolic9944 4 года назад

      @@juliocodes Wow, one of the rare chanels that offers feedback. Subscribed

  • @forestfox00
    @forestfox00 2 года назад

    can it be done with flexbox?

  • @malumbopolela5380
    @malumbopolela5380 2 года назад

    This was really interesting to practice with Julio Codes. I just had one challenge after completing the course. in the folder I used for the Images I linked to the site, I couldn't replace the images. even after deleting the images in the folder. The images that where linked before still appeared in the changed folder. My question is, do the images we link in the site store in any placeholder?

  • @scorpion32
    @scorpion32 4 года назад +1

    UPDATE:
    For anyone following along now , ion icons have changed the names of icons
    it's now Not what the video says to get the expand icon
    When it comes to targeting the icon dont do: .image-gallary a ion-icon{font-size: 3rem;} . if you do that your icons go off the page
    Instead do this when targeting : .image-gallary a i{ font-size: 3rem;}

    • @GDLAPROD
      @GDLAPROD 4 года назад

      Can you share the exact code here? Having a hard time following.

  • @vibewithalexa
    @vibewithalexa 4 года назад +1

    How to do this dynamically ? Like in the case of instagram explore section?

  • @anthonyhanel
    @anthonyhanel 4 года назад

    Can this be done with a variable amount of pictures? If I gave you an array with an unknown amount of images how would you do this? It's hardcoded

  • @antemedic
    @antemedic 4 года назад

    Hi, how to zoom thumbnails on hover inside the grid. overflow:hidden is not working and image is zooming over other images. Thanks.

  • @nigelpallatt
    @nigelpallatt 4 года назад

    Wow, thank you so much, love it! Well done and a great tut!!

  • @standard0075
    @standard0075 4 года назад

    can we use it for a commercial website

  • @freestyle8886
    @freestyle8886 4 года назад +1

    Great content, i really enjoy your videos

  • @nicolsaha2344
    @nicolsaha2344 4 года назад

    thank you! I used this; however, my problem i that the sticky navbar I created does not stick over the image grid, it does over the rest of the page. Any idea why this happens? thank a lot!

    • @juliocodes
      @juliocodes  4 года назад +1

      Make sure you specify a top: 0 and a high value z-index to make sure it stays on top of all the content

    • @nicolsaha2344
      @nicolsaha2344 4 года назад

      @@juliocodes thank you! Love it! Xx

  • @martin3749
    @martin3749 5 лет назад

    this channel should have at least 10 times more subscribers than it has

  • @ilhadourada
    @ilhadourada 4 года назад

    Awesome tutorial! Thank you!

  • @FacuMunoz298
    @FacuMunoz298 4 года назад +1

    I'm having a problem with the icons part. It only work if I use instead of the "i" class. But the real problem is when I try to give style to the icon with CSS becouse it dont work.

    • @trishperalta1249
      @trishperalta1249 4 года назад

      I have the same problem right now, have you figured it out yet? :)

    • @aditpinheiro
      @aditpinheiro 4 года назад +1

      I think Julio was using an older version of the ionicons (2019 video). Now ionicons is at v5. If you wanna use them the exact way he used it, you can use the archived version of ionicons. Its available on their site at ionicons.com/v4/usage

    • @theanimationjourney
      @theanimationjourney 4 года назад

      @@aditpinheiro Thank you!!

  • @karinaarias9039
    @karinaarias9039 3 года назад

    thanks for the video! you saved my life

  • @shazbaz5695
    @shazbaz5695 4 года назад

    If I change the HTML font size to something else it causes horizontal scrollbar. What can I do to fix this?

    • @juliocodes
      @juliocodes  4 года назад

      You can hide the overflow.

  • @giljigg2701
    @giljigg2701 4 года назад +1

    wow!!! super........thank you so much........

  • @tholfikarmohammed887
    @tholfikarmohammed887 4 года назад

    can do this with flexbox? every one say it is much better to use flex than grid, and i didn't find any one explain how, they just use misleading thumbnail for there videos!

  • @joze.rios44
    @joze.rios44 4 года назад

    Excellent sir...let me tell you than i'm Argentinian, i writte English a little...sorry for the rule.....and too...let me tell than i'm a begginer web developer...thanks for this video...i hope will work of my designs...

  • @SparkCantCode
    @SparkCantCode 4 года назад

    Is this doable with flexbox?

  • @zdarofMERGAITES
    @zdarofMERGAITES 4 года назад

    how to stop pictures to stretch when changing resolution?

  • @davidalejandro6034
    @davidalejandro6034 4 года назад

    Amigo; toma tu merecido like 👏🏼👏🏼👏🏼me has ayudado un monton

  • @fabricedeas9628
    @fabricedeas9628 4 года назад

    absolutly great ! thanks

  • @mdibrahimkhalil2847
    @mdibrahimkhalil2847 2 года назад

    Nice tutorial

  • @ziinx5899
    @ziinx5899 4 года назад +7

    Huh, the installation seems to have changed now

  • @droow3917
    @droow3917 5 лет назад

    hello i have a problem. My photos are not displayed, there is only the gray background

    • @juliocodes
      @juliocodes  5 лет назад +1

      Make sure that you specify the correct path the image based on where your documents are saved

    • @droow3917
      @droow3917 5 лет назад

      Julio Codes please look in instagram

  • @MrFun2know
    @MrFun2know 4 года назад

    YOU ARE A LEGEND!

  • @ruthrojasp
    @ruthrojasp 4 года назад +1

    Muy bueno el tutorial. Muchas Gracias.

  • @tatkimchhae3761
    @tatkimchhae3761 4 года назад

    Why we need to give max-width to container?

    • @juliocodes
      @juliocodes  4 года назад

      to limit how wide the container gets.

  • @picalingo5244
    @picalingo5244 4 года назад

    Hi there! Thanks for this amazing tutorial and you have explained it very clearly but I've some scripts running before this so I've modified some parts which I think the previous scripts have set it up. I am now stuck at having the black boxes showing while hovering over. Is there anything I can provide so that you can help? Thanks again! :)

  • @afrahhassan741
    @afrahhassan741 5 лет назад

    amazing tutorial. thanks for sharing your work

  • @igoroliveira9146
    @igoroliveira9146 4 года назад

    Is it possible to include the images through HTML without collapsing the images?

  • @pedrolefteen
    @pedrolefteen 4 года назад

    Great man! Thanks!

  • @GDLAPROD
    @GDLAPROD 4 года назад

    I noticed that when you started to add the images to the .img-1, .im2, etc tags, you images began to display on the screen. Mine don't. This is the code I am using in HTML since the ion icon changed.

  • @SameerQureshi-rl3co
    @SameerQureshi-rl3co 3 года назад

    bro where is the code can't find in github u provided

  • @hiwayshoes
    @hiwayshoes 5 лет назад

    Hi Julio, thank you for this nice tutorial. I am going to use my own images for this project, and I was wondering if your images all have 1500px for the height. I know how to optimize my file sizes (I use GIMP) but width and height for my images always seem to be a problem for me. I’m asking to find out what you recommend for image width and height. Thanks for your great tutorials, I’m learning a lot from them... Cheers!

    • @juliocodes
      @juliocodes  5 лет назад +3

      Glad you’re finding the videos useful! As far as image sizes, I believe I used 1000x850 here. As long as you make all your images the same size it shouldn’t be a problem as opposed to some issues that may arise if they are all different sizes. I personally play around with the sizes (using GIMP also) and go with whatever size looks better. If being used in a real project it’s also good to optimize the file size to reduce load times. There are many tools online that can do this for you.

  • @mastercode7851
    @mastercode7851 5 лет назад

    the best as always, thanks julio , i want to ask you do you sometimes do back-end things like server side coding ?

  • @noober7397
    @noober7397 4 года назад

    Amazing video
    thanks a lot :)

  • @noaakshay
    @noaakshay 4 года назад

    what is the difference in between *{ margin:0; padding:0; box-sizing:border-box; } and body{margin:0; padding:0; box-sizing:border-box; } what will happen if we apply directly to the body insted of using * please reply me

    • @juliocodes
      @juliocodes  4 года назад

      * is the universal selector which means it will apply those styles to all elements on the website except for the ::before and ::after unless you include the universal selector on those as well (*::before, *::after { ... })

  • @junjielin4663
    @junjielin4663 4 года назад

    really love your videos! could you do a video on 'about me' page, a tutorial on how to position elements, and a tutorial on other styles of blog posts? I really like to learn to do these without Bootstrap. Thank you.

  • @safinlimon434
    @safinlimon434 5 лет назад

    thanks broo!!its really helpfull

  • @cabecinhadegato8147
    @cabecinhadegato8147 5 лет назад +1

    Great man

  • @CodeShow.
    @CodeShow. 5 лет назад

    Good! Keep up the good work

  • @ashekelahi5081
    @ashekelahi5081 4 года назад

    What should i do if image number is infinite...??

    • @juliocodes
      @juliocodes  4 года назад

      Use JavaScript to populate the grid dynamically

  • @networkfreddy2000
    @networkfreddy2000 4 года назад

    Julio do you have experience as a freelancer? If so how is it?

  • @nicolasmarques7460
    @nicolasmarques7460 4 года назад

    Thanks man!

  • @junaidtariq4547
    @junaidtariq4547 5 лет назад

    thanx bro for making awesome tutorial (Y)

  • @selminsaiti6426
    @selminsaiti6426 5 лет назад

    How to get code

  • @michaelstevencruztorres2025
    @michaelstevencruztorres2025 3 года назад

    Thanks you :333

  • @malumbopolela5380
    @malumbopolela5380 2 года назад

    Learn with Julio Code. if you have the foundation of html, his the best for your advance in web and mobile website development.

  • @ranrori
    @ranrori 4 года назад

    Thank u very much!

  • @maicon484
    @maicon484 11 месяцев назад

    Niceeee

  • @rasulali4690
    @rasulali4690 4 года назад

    Jing Yaaaaang!

  • @clar2989
    @clar2989 4 года назад

    Hi, I would like to ask if I can use videos instead of images. It is possible right? :D

  • @jameshajiyavudeen1805
    @jameshajiyavudeen1805 3 года назад

    sourcecode?

  • @leonardopavlovic9729
    @leonardopavlovic9729 4 года назад +1

    Can you post the file of .html and .css so that I don't must to write al that.

  • @ibnulhaidar3244
    @ibnulhaidar3244 5 лет назад

    can someone give this file?

  • @somnvm37
    @somnvm37 4 года назад

    Thx for ionicons.

  • @nigelpallatt
    @nigelpallatt 4 года назад

    Please note: This tutorial is out of date. The reference to the ion icons does not work as explained no fix found but see bellow for possible. : - (

    • @safiyyahmuhammad6718
      @safiyyahmuhammad6718 4 года назад

      It works if you go to the Ion icon site and use the script tag for installation instead of the outdated stylesheet tag. You also have to target the icon in css using .image-gallery a ion-icon { } instead of .image-gallery a i { } . It worked for me . Let me know if this helps. Please subscribe to my channel if you're a beginner coder like myself :-) .

    • @juliocodes
      @juliocodes  4 года назад

      Update the CDN with the newer one. You can just visit the official ion icons website. You also don't necessarily have to use ion icons, you can use other icons like font awesome or even png images.

  • @ভোমরা
    @ভোমরা Год назад +1

    Nice 2023

  • @purshotamyadav3347
    @purshotamyadav3347 4 года назад

    Please sit make video uploader websites

  • @selminsaiti6426
    @selminsaiti6426 5 лет назад

    pls

  • @Mrbhuriya1
    @Mrbhuriya1 5 лет назад +2

    totally disappointed, totally waste of time, why you are using template area? there is only 8 images, so u can customize each one, but what if you have 80-800images/

    • @juliocodes
      @juliocodes  5 лет назад +2

      Well, next time read the description since it’s mentioned there that template areas are used. This is only a simple way of creating a gallery. Which is what one will see in most websites unless the website is supposed to showcases images only. In that situation there are many different options.