For those who images stack together: adjust you max image sizes, meaning the image that you have imported is too big. To do this, go to ".slider-image {" section, under there type "max-width: 800px;" and "max-height: 600px;".
@Jayden-cars3 жыл бұрын
Thanks
@robogaming47312 жыл бұрын
My Image is not stacking but but they are not in horizontal manner they are in vertical manner
@Raffitch2 жыл бұрын
Thank you, a lot!! thank you so much!! Thx!! thanks!! Sankyou!!, Muchas gracias!!! MUITO OBRIGADO!!!
@kevinxie65982 жыл бұрын
@@Raffitch No problem
@alwaysgratefulmixail75692 жыл бұрын
@@robogaming4731 use display: flex;
@oldguy8177able5 жыл бұрын
I've been coding for about a year and this simple thing slideshow is the hardest ,man I've done 20 different slideshows everything works except the slider
@memoonashafqat10035 жыл бұрын
yeah u r irght only image shown .
@octaviolara90875 жыл бұрын
It worked for me. Not at first though, i had to twitch around for a while and i actually don't know what made it work, but now it works. If your image background is white, set the button color to black or blue or anything else, i've seen plenty of persons here complaining about the buttons not showing or the code not working... It works, and the buttons show if you change the color to adapt your image background
@luvualwayz185 жыл бұрын
could you paste your code? mine isn't working either and I feel like it should. I resized all my images to the same size. It's clean now but now buttons and no movement.
@octaviolara90875 жыл бұрын
@@luvualwayz18 Sure thing, it is inside a project with has a lot of code so i will just paste in here Html: css: .slide-container{ height: 300px; width: 300px; margin-left: auto; margin-right: auto; overflow: hidden; text-align: center; } .image-container{ height: 300px; width: 900px; position: relative; transition: left 2s; -webkit-transition: left 2s; -moz-transition: left 2s; -o-transition: left 2s; } .slider-image{ float: left; margin:0px; padding: 0px; } .button-container{ top:-20px; position: relative; } .slider-button{ display: inline-block; height: 10px; width: 10px; border-radius: 5px; background-color: black; } #slider-image-1:target ~ .image-container{ left:0px; } #slider-image-2:target ~ .image-container{ left:-300px; } #slider-image-3:target ~ .image-container{ left:-600px; } My advise would be to work this off first in a blank project and then paste it to the actual page you're trying to pull off. Good luck. I even used it twice in the same page and all you have to do is change the id or the class inside the code so it doesn't mess up with the other one. Good luck, i hope this helped you
@hcivopsaR Жыл бұрын
How can we make it so it automatically slides through the images?
@nolongeriproductions5 жыл бұрын
Some are saying it doesn't work. It didn't work for me at first either, and then I realized I missed a whole class: the button-container class which comes JUST AFTER the .slider-image class. The code that was missing for me was .button-container { top: -20px; position: relative; } I plugged that in and it worked perfectly. Thanks for the tutorial and explanations that went along with it. Very helpful! If there's a way to add automated timing and a loop as well as right and left navigation, that would be an amazing add!
@youceflaib21585 жыл бұрын
even when im add it it still does not work
@myrtheooink75705 жыл бұрын
@@youceflaib2158 same for me
@youceflaib21585 жыл бұрын
@@myrtheooink7570 its because the class and tags the erreur in them
@prashantmajumdar15194 жыл бұрын
Hey i have done the same but there are no buttons on images and only first image is showing
@amerux20064 жыл бұрын
it a scams
@joeblack71564 жыл бұрын
Did you ever get it to work? I got the same result as you.
@prashantmajumdar15194 жыл бұрын
@@joeblack7156 no man it's the same
@ValeoPRJCT4 жыл бұрын
same bro, i don't know how to fix it
@amandadrieenhuijzenn4 жыл бұрын
i did by .button-container {top: -200px;} Now i see buttons.. :)
@MrMtzr3 жыл бұрын
The best solution I could find. Might be nice to add functionality for images of different sizes and giving the 'current' selected button a different background-color! I managed to do that by adding javascript of my own, but if there was some way to do that with pure CSS, that'd be amazing really :)
@anidhyaagrawal28244 жыл бұрын
on typing excatly the same coding , I'm not getting the required output. My images are not sliding . They are coming vertically and also coding is also coming on the output page
@mendistudio4 жыл бұрын
Maybe the total sum of the images widths doesn’t match the container’s width.
@charlieschuyler93774 жыл бұрын
@ your probably missing some "< >" if code is on the actual site
@justgamingacademy92444 жыл бұрын
Was really helpful. Thank you so much. Would be great if you could upload a video on about how to make the images move automatically.
@apfel43743 жыл бұрын
u need js for that
@melloscripter2 жыл бұрын
Hey, my English isn't very good, but I could understand all what do you said and did, so I aprecciate your content, is very helpfull and clean, thanks!
@clevertechie Жыл бұрын
You're welcome!
@SilverKEYofficialYT4 жыл бұрын
the link buttons don't work for me...
@TrueMishamol3 жыл бұрын
To auto-resize slider to fit the screen, just change pixels to percentages in css file, and remove fixed size in slide-container. Also in css file, I set the number of pictures to 10, but in html file I be able to use less than 10 just without adding extra buttons. .slider-container { max-width: 1024px; /* Optional */ margin-left: auto; margin-right: auto; overflow: hidden; text-align: center; } .image-container { width: 1000%; /*Number of pictures. There can be many times more pictures here than on the slider*/ position: relative; transition: left 2s; -webkit-transition: left 2s; -moz-transition: left 2s; -o-transition: left 2s; } .slider-image { width: 10%; /*One picture of their total*/ float: left; margin: 0px; padding: 0px; } #slider-image-1:target ~ .image-container { left: 0px; } #slider-image-2:target ~ .image-container { left: -100%; } /* etc */
@saranyajeyam8116 жыл бұрын
I want automatically moving images and keep the cursor stop moving plzz upload that video ...
@justinkringstad41675 жыл бұрын
my images arent sideways. they stacked on top of each other.
@richmondarhin29124 жыл бұрын
Yhh. Mine too. I've done it three times already 🤦
@minater2474 жыл бұрын
Just a random idea - have you tried setting them to inline? Just saying this since more people seem to be having the issue
@jorn31684 жыл бұрын
@@minater247 thats also not working
@earaasanray89284 жыл бұрын
same here
@parthtyagi92664 жыл бұрын
same problem please help
@Chineization Жыл бұрын
this helps me a ton! thank you! there's only 1 issue I have on my page. everytime, I need to click on a dot(button) before it could run properly when I load up the slider. do you know what cost that happen? and how we could fix an issue like this? thank you!
@bjmgraphics6173 жыл бұрын
My images are super big and I got nothing but one truncated image with no controls. My images are 5000 pixels in width by 822 in height. I made sure to type in exactly the way you have in the video, plus I have four total images. thanks
@Marko_Djuricic5 жыл бұрын
I appreciate you helping people but those who don't understand html/css really well, this is very confusing because you first style something in css that you haven't even created in html yet and you don't leave your text editor for a sec to show the progress. You know what you want to make but others don't, so you have to show how every style property affected the element after you styled it. This is how you work and it's fine but it's not fine for a tutorial where people need to understand. That being said, I repeat again, I appreciate your help, this is just a motivational critic. I'm not saying you don't care if people understand because you do care, I'm saying that not everyone is a teacher, me being one of those who aren't. I can't teach jack to other people because I do the same things you did in this video. I forget that people don't know the same things that I do and that something trivial to me is not trivial to others. Also, I'm not saying you should not be teaching, I'm saying that you should continue teaching but work on it. Good luck.
@ademyildizlanguages5 жыл бұрын
I was exactly about to write same comment.
@abdelaesus66783 жыл бұрын
Great content. Clean, clear, useful and instructive.
@danielasofiatreminio88155 жыл бұрын
Thank you so much! this really works. I was having problems at the beginning then I realize my images had different sizes. When I changed them to the same size the slider appeared! thank you for sharing
@prashantmajumdar15194 жыл бұрын
Can you please tell me how you changed images to same size
@prashantmajumdar15194 жыл бұрын
Abd how the slider appear
@guitarstrummom3 жыл бұрын
@@prashantmajumdar1519 Use Photoshop to crop your images to the same size. Then use the cropped images.
@prashantmajumdar15193 жыл бұрын
@@guitarstrummom thanks pal
@prinzemu14983 жыл бұрын
Very good tut! The second explanation at the end really helped.
@user-eu9cl8vc4i Жыл бұрын
For me when I tried this, my photos didn't go into a slide container they just blocked on top of each other. I followed the video to a T, any suggestions on what I could possibly be doing wrong?
@diogomiranda90985 жыл бұрын
My button container doesnt show up, it keeps hidden and when i check on my program it is actually there, but when i go on to the preview it doesnt show up. can u help me out?
@octaviolara90875 жыл бұрын
Make sure to change the color of your button so it shows.
@gccreativeworks4 жыл бұрын
Great delivery on how to create slide show. Very detailed. Thank you.
@GodsAutobiography5 жыл бұрын
Thanks for the tut, but I cannot seem to get it to work. I've run through it twice and I cannot find any typos or inconsistencies. For starters, my buttons are invisible, and now they are showing up below the screen. I can see through f12 that they appear to be just underneath my page. I had somehow managed to get them to display higher at one point, but they were invisible. Regardless, when I click either of them i am put on a page with an error that the file cannot be found. Zero idea as to what the issue could be...
@GodsAutobiography5 жыл бұрын
Could someone send me the source code or their own code that works so I can test it out?
@SPGAMING5 жыл бұрын
same :(
@dhritidey85002 жыл бұрын
ikr!!!I am facing the same issue
@peepwebdev5754 жыл бұрын
Thank you, thank you, thank you!!!! you have saved my project. I have spent days trying to find a way to do this, looking through complex JS which i don't understand. This is such a simple and powerful technique. Well done for sharing!
@peepwebdev5754 жыл бұрын
That being said, i couldn't actually use this as it has an annoying "page jump" the first time the a link is clicked. I think this is due to core HTML behaviour and so there is no fix to this issue. As cool and easy as this is, i don't think you can use it with the annoying jump on the first click.
@guitarstrummom3 жыл бұрын
@@peepwebdev575 I got it to work in Chrome (but not in Edge) by adding "left:0px;" to the image-container class, as suggested in one of the other comments. Now I'm trying to figure out how to make this work in Edge, a browser not mentioned in .image-container.
@zeelkapadia38424 жыл бұрын
I do the same code but i m not able to set more than 2 the 3rd image shows blank slide
@SelloMathakhoe5 жыл бұрын
great stuff! ... Your video really helped me. I created html and css slideshow properly now. Awesome!
@joepapi82102 жыл бұрын
Great tutorial! I was trying to do this without using JS
@alexserac84755 жыл бұрын
Can anybody help me? How do you make it loop through the images?
@frenkie_music3 жыл бұрын
make a @keyframes animation and set it to infinite
@hcivopsaR Жыл бұрын
@@frenkie_music Can you go into more detail on how to do this?
@gameplayerzzofficial50892 жыл бұрын
why can't I see the second picture and third picture, but I can see the first picture
@sankalptripathi36834 жыл бұрын
Please help....how to double this slide....I have tried to double your slide program but the button function merged!!!!...please helpppp!!!
@kaiichou71595 жыл бұрын
Thanks For The Tutorial My Computer Teacher Is Really Impressed To What I have Done This Really Helps Me Alot
@basdevries274 жыл бұрын
Hey! Quick question. I've literally copied you but the buttons don't trigger the image to slide. I can see the link change and whenever I reload the page after I hit one of the buttons it slides to the image I want! What am I doing wrong?
@Yukina2863 жыл бұрын
do you have with a caption for each image?
@hwa284 жыл бұрын
works perfect! Thanks for your video. But if I want the slider fits the whole page, how can I change the width, it cannot be 100%.
@occasionalytcommenter65533 жыл бұрын
Simply reduce it ("Width: 50%")
@ukar25 жыл бұрын
It does not work!
@wackodreamer4 жыл бұрын
anyone know why I may not be able to get the slider buttom to show up? Im pretty sure everything is correct but its not there
@mark22133 жыл бұрын
This didnt work on either Chrome or safari? Both a stacking of photos occurs, the button doesn't show up and there is no slide function. The container dimensions have no affect when changed. Adding a max downsizes the photos, but has no other affect. Very strange that some have seen similer issues and it works for others????
@vivienng98025 жыл бұрын
I'd put in page title but will be push upward whenever I click on slider-button. I tried changing some top margin but does not work. Please advise how to prevent this.
@shubhangarbeeragere90602 жыл бұрын
I learned something new in CSS, :target and ~ thanks
@utkarshchaudhary61604 жыл бұрын
this is ultimate!!!!! great work bro! Really appreciate it....
@fluoponey3 жыл бұрын
Hello! I can't see the same result, the code is alright and i'm using Visual Studio code, can you help me?
@stefaniacristini36743 жыл бұрын
I have the same problem😕
@fluoponey3 жыл бұрын
@@stefaniacristini3674 =( @Clever Techie can you help us? Thank you
@KOM-jh4 жыл бұрын
Not sure where I'm going wrong with this one but I only have one image that shows with no slideshow. Basically copied everything except the size of the .slide-container and the .image-container and everything else is the same as the tutorial. Gone over it a few times and did notice some spelling errors, but can't find anything else? kinda stumped
@pierredugowson87313 жыл бұрын
Thanks, it works well. But how can I replace the buttons by arrows on the sides ?
@caseymcnair48862 жыл бұрын
wish there was a mega like. thanks for the help on my final.
@akrockit5393 жыл бұрын
I am not knowing how to get same sized photos
@sweetbaby37604 жыл бұрын
Hey, what about trying to make the 3rd image in the image slider go back to the 1st going left?
@fontsize69734 жыл бұрын
it works very well, no complaints thanks for making this tutorial
@TUNNELTV6 жыл бұрын
not working
@chitowngardener16584 жыл бұрын
Same at first for me. You just need to do the math on your image count and all will be fine. Works like a charm for me.
@andrewwright89425 жыл бұрын
used this concept for creating a slider gallery on a small section of a webpage, however, every time I click the button to transition, it jumps down the page. The slider does work, it just has another effect that I do not want.
@octaviolara90875 жыл бұрын
I'm having the same problem right now, did you manage to solve it? the op is not answering any questions
@IsaacSchluesche314 жыл бұрын
Is there any way to do this where the images don't really "slide" but just change in place?
@grygoriiovsianikov66713 жыл бұрын
just delete the transition: left 2s; and thats it :)
@IsaacSchluesche313 жыл бұрын
@@grygoriiovsianikov6671 thank you so much!
@grygoriiovsianikov66713 жыл бұрын
@@IsaacSchluesche31 :D
@matthewjonathonmajor53704 жыл бұрын
I don't understand how yours works because you have .slider-container as the class accessor in the css but its slide-container in the html. There is nothing inside the span so I don't know how you got there to be dots there either. Can you please expliain this to me? I am very confused and can't get it to work.
@mohit_503 жыл бұрын
Had you watched the video you'd know he corrected it near the end.
@elemori63725 жыл бұрын
Love it, thank you. Best video that explains thoroughly.
@LYJManchesterUnited3 жыл бұрын
Hi I was wondering if it is possible to display multi images at once using just html and css?
@robogaming47312 жыл бұрын
A goods Explanation, Efforts. I Love the Video
@clevertechie Жыл бұрын
Glad you loved the video, thank you!
@srinikethanr10564 жыл бұрын
hey, it was really useful, but I need source code to check with my current image can I get the code.?
@cbl2653 жыл бұрын
Can I use this source code for my own website? Or do I need to be subscribed to his Patreon?
@dhritidey85002 жыл бұрын
I am not able to do it with 5 photos,like the buttons are not appearing let alone the sliding effect and I literally wrote the same syntax,I am using Sublime Text editor3.0 for HTML/CSS.Could someone pls help me out??😥😥😥
@user-eu9cl8vc4i Жыл бұрын
I am using 5 images as well and having the same issue. I see your comment was from about a year ago but by any chance have you found/remember a solution?
@dasunprabashana25542 жыл бұрын
Ty bro . really helpful.
@clevertechie Жыл бұрын
you're welcome!
@minater2474 жыл бұрын
Everything's working perfectly, except the alignment... the images arent aligned to center, while the buttons are. I'll try and figure this out.
@steveejoel32484 жыл бұрын
I got the buttons but when i click on them nothing happens im using jsbin
@malemonstir4 жыл бұрын
damn I was following every stroke and all but there are parts when he doesnt show or mention what he clicks or the shortcut keys, how did he preview his work? I have no clue. newbie here learning how to code.
@guitarstrummom3 жыл бұрын
This works beautifully in Chrome and Safari. But in MS Edge, the three photos merely line up one under the other. What's different in Edge that causes this problem?
@isaaccarter77863 жыл бұрын
Easy fix, don't use microsoft edge
@jakeisthebest92374 жыл бұрын
Worked for me! Thanks.
@3doh5274 жыл бұрын
What do i do if i want to add a different caption to each of the image?
@MarioGuevaraC6 жыл бұрын
Thank you, Kanye, very cool
@chrissyabby2085 жыл бұрын
I followed your tutorial, I in fact copied exactly what you did, I dint get the same result. I used sublime text editor but is unregistered, could that be the reason?
@MrVwin5 жыл бұрын
you can do whatever you want with the unregistered version. it has nothing to do with that
@EvlEgle4 жыл бұрын
thats not how html/css work... its dependent on the browser parsing it. update your browser, make sure the code is correct.
@jasmineburton14934 жыл бұрын
Thank you! This video was very helpful! :)
@megamanx9134 жыл бұрын
Thank you so much, I really gonna use it your way, but I have 6 images I want to use it. So how I supposed to use 6 images on my website? just like you did in your video? please sir, I really need it.
@TanveerHashmi4 жыл бұрын
in image container class image width will be 6 times.span will be 6 times instead of 3.
@ScreenPrintR5 жыл бұрын
Is it browser specific? I tried it in Chrome and Firefox. Didn't work on either one.
@ScreenPrintR5 жыл бұрын
I think the problem might be because I put html comment tag. For some reason new browers don't like comment tags.
@abimaelyisrael8585 жыл бұрын
Thanks a bunch for these videos man!!! This was a blessing for me.
@anonanon521 Жыл бұрын
Is there a more elegant way to do this? Also can I turn the images into links?
@outrageoushornet665 Жыл бұрын
How do you add buttons then?
@dyathinkhesaurus4 жыл бұрын
your slidecontainer class is referred to in the CSS as slideRcontainer..
@themuskanthapa3 жыл бұрын
Thank you so much.. Helped alot
@jadeconnolly67114 жыл бұрын
works perfectly thank you soooo much
@usuallyhungry6576 жыл бұрын
and what if I want the images sliding automatically too
@giampearopeter12304 жыл бұрын
exactly ,i want to make it in this way
@shookbeef15404 жыл бұрын
I did exactly this and it didn’t work for me
@z.o.n27984 жыл бұрын
asin the thing is dope but it is not working
@scsv85253 жыл бұрын
the button doesnt appear can someone help me?
@stevenarevalo23084 жыл бұрын
link to download the image folder please
@scienceblossom61974 жыл бұрын
Wow! target! Interesting feature of CSS! TY!
@mofurry84304 жыл бұрын
worked perfect with me! Thanks for the tutorial!
@kommanavikas4264 жыл бұрын
Hi sir! I tryed almost 4to 5 times but still output not coming as we want.😔😔can u help me🙏
@GtrBeez4 жыл бұрын
Did u ever figure it out Bc I’m having the problem of them stacking
@mehakshabbir59564 жыл бұрын
this brother is amazing
@mangualamcany50045 жыл бұрын
Ok, that's not working.
@debr9615 жыл бұрын
Works great!
@gladiator18883 жыл бұрын
The Code doesn't work on safari
@joep11314 жыл бұрын
thanks very informative great Job !!
@thistaken55504 жыл бұрын
I'm confused it didn't work for me :( Edit: it works just the buttons aren't showing
@Fathom9885 жыл бұрын
Awesome video thank you!
@jibinsaji95234 жыл бұрын
kolllam pwoli saanam
@Furiac.5 жыл бұрын
Awesome video, The one thing I ran into is I named somethings slider container instead of slide container lol
@jorn31684 жыл бұрын
well done! i love it.
@md.mahfuzorrahman80664 жыл бұрын
Can you make it automatic?
@joeblack71564 жыл бұрын
I went over my code. I get only the first photo and no buttons. My code matches yours line for line.
@scsv85253 жыл бұрын
same
@chriskaufmann87744 жыл бұрын
How do you make this responsive?
@aleksandar25653 жыл бұрын
you can't
@supsaifi40425 жыл бұрын
Good and working but it doesnt moves automatically u have to use button for it :((
@greenchilistudioz45372 жыл бұрын
My pictures are not showing, all are in same size and follow instructions, this video is boggest!