HTML and CSS Project Tutorial: Pure CSS Image Slider

Поделиться
HTML-код
  • Опубликовано: 12 июн 2024
  • Let's walk through this HTML and CSS tutorial to create a responsive image slider with only HTML and CSS!
    🗂 CODE: skillthrive.gumroad.com/l/cgybb
    ⏰ TIMESTAMPS ⏰
    Introduction: 0:00
    HTML: 0:21
    CSS: 1:35
    🔗 HELPFUL RESOURCES 🔗
    A Complete Guide to Links and Buttons:
    css-tricks.com/a-complete-gui...
    A Complete Guide to Flexbox:
    css-tricks.com/snippets/css/a...
    ❤️ INSPIRATION ❤️
    Emilio Dominguez: codepen.io/emilio-dominguez/p...
    🥰 FOLLOW ME 🥰
    Twitter: / hunterbecton
    👋 FOLLOW SKILLTHRIVE 👋
    Twitter: / skillthrive
    #html #css #coding

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

  • @glorysinkhonde197
    @glorysinkhonde197 Год назад +39

    Best HTML/CSS carousel tutorial on RUclips. The explanations are amazing!

  • @noahthegreat190
    @noahthegreat190 7 месяцев назад +24

    bro wtf i think this is the best coding tutorial ive ever seen (and i spent 5 years @ CS in Uni). Clean and concise english and explanation, less than 10 min, and good audio. W channel

    • @Skillthrive
      @Skillthrive  7 месяцев назад +1

      Thanks! That’s great to hear!

  • @Karmator
    @Karmator 2 месяца назад +2

    BEST TUTORIAL EVER. EASY TO FOLLOW AND SIMPLE. LOVE YOU MAN

  • @anthonychen7224
    @anthonychen7224 Год назад +4

    Most helpful HTML/CSS tutorial I've seen so far.

  • @arsenedjumbe5914
    @arsenedjumbe5914 Год назад +56

    I couldn't believe that with just HTML and CSS something like this could have been achieved
    Man, you've just earned a subscription
    Great content 👍🏾

    • @Skillthrive
      @Skillthrive  Год назад +3

      Thanks for the sub!

    • @whitesky8013
      @whitesky8013 Год назад +3

      @@Skillthrive is there a way to make it move automatic?

    • @me-hu-ruhi
      @me-hu-ruhi 5 месяцев назад

      ​@@whitesky8013yea using js

  • @petrus2746
    @petrus2746 2 месяца назад +2

    Hats off to you man, I thought this could only be done with javascript

  • @antonioglavocevic3844
    @antonioglavocevic3844 2 месяца назад +3

    Extremely clean and simple example that is well explained.

  • @Skillthrive
    @Skillthrive  Год назад +28

    I updated the CodePen to hide the scrollbar! Sorry I missed that in the tutorial.

    • @y01cu_yt
      @y01cu_yt 10 месяцев назад +1

      Thanks for the video. I think it'll be better if you pin this comment.

    • @duckpanther6768
      @duckpanther6768 9 месяцев назад

      Idk if you’ll see this but is there an alternative for aspect ratio?

    • @mohamedftita9664
      @mohamedftita9664 7 месяцев назад +3

      Hi thnks for the awesome tutorial .
      There is a tiny detail I wanna tell you about if you use this method in a full website it will always take the user back to this section (when the user scrolled down to see the other section )

  • @officersmiles9114
    @officersmiles9114 Год назад +10

    Fantastic video! Spoken very clearly and everything explained in detail. A little fast, but still very good!

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

    if you want to move the image inside the slider use object-position: 50% 50% (adjust this accordingly)

  • @6100poiuy
    @6100poiuy 9 месяцев назад +4

    Just used this for one of my classes! Thank you!

    • @Skillthrive
      @Skillthrive  8 месяцев назад +1

      You're very welcome!

  • @juanmartinkuasnosky55
    @juanmartinkuasnosky55 Год назад +4

    u are like a god dude, you have just earned a subscription from Argentina! great videos, keep going!

    • @Skillthrive
      @Skillthrive  Год назад

      Thanks, Juan! Glad to have your sub!

  • @naturesmusic1171
    @naturesmusic1171 Год назад +5

    Simple, short and clear

  • @svdden_strike
    @svdden_strike Месяц назад

    Best tutorial ever on the internet 😮🚀

  • @chuk_udi
    @chuk_udi 10 месяцев назад +3

    Goated video. You can slap this bad boy anywhere

  • @yokidrift1720
    @yokidrift1720 8 месяцев назад +2

    With some modifications this will work well for me. Thanks for showing us the basic layout!

    • @Skillthrive
      @Skillthrive  8 месяцев назад +1

      Glad it was helpful!

  • @mind_blazed
    @mind_blazed Год назад +3

    How simply simplified man . This is best video . Thank you very much .Best explanation 🔥❤️

    • @Skillthrive
      @Skillthrive  Год назад

      Thanks, Pravin! Glad you found it helpful.

    • @mind_blazed
      @mind_blazed Год назад

      @@Skillthrive not even slider but also many css property like scroll type flex 10 100%; object fit cover ....it helps me a lot ..❤️❤️❤️

  • @arturonicolasjuarez9175
    @arturonicolasjuarez9175 Год назад +1

    Thx! Very useful and easy to do! You are amazing!

  • @DatsunZ73
    @DatsunZ73 Год назад +1

    This video was great and to the point thank you.

    • @Skillthrive
      @Skillthrive  Год назад

      You're welcome! Glad you found it useful.

  • @chipyyyyy
    @chipyyyyy 5 месяцев назад +1

    How can i make that when i click any of the buttons it moves the page and puts the images in the top of the users view, i mean when i click if i've scrolled down it puts me up again, i don't know if someone could help me please, thanks.

  • @umarmuzammil7332
    @umarmuzammil7332 Месяц назад

    thank you bro helped a lot

  • @nsa3679
    @nsa3679 9 месяцев назад +3

    how to prevent the browser from centering top of viewport on the anchor target?

  • @RipperTiger
    @RipperTiger 3 месяца назад

    thank you so much for the perfect tutorial

  • @fuadagayev-mg7fk
    @fuadagayev-mg7fk 5 месяцев назад

    thank you. Very best and most important.

  • @kanna467_
    @kanna467_ 9 месяцев назад

    Thank you very much bro , very helpful content

  • @olgakinasz8368
    @olgakinasz8368 Год назад +5

    Amazing tutorial!!! The one I really could use that perfectly works for my project! Many thanks!!!!

    • @Skillthrive
      @Skillthrive  Год назад

      Thank you! I'm glad it worked for you.

  • @RIZzKHAN-kp3vq
    @RIZzKHAN-kp3vq 8 месяцев назад +1

    Easy to understand. Thanks👍

  • @dashakacreation
    @dashakacreation 9 месяцев назад

    Thanks for teaching... Good luck

  • @themodernneeds1832
    @themodernneeds1832 8 месяцев назад +3

    how to remove the horizontal slider below it....????

  • @degubaertv
    @degubaertv 4 месяца назад +2

    How can i prevent Jumping on Click at the Dots? It always jumps up, till the slider reaches the top. and that everytime i click a Dot...

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

    hey im working with photos of aspect ratio 4:3 what changes should i make ??

  • @emileguiza8698
    @emileguiza8698 Год назад

    I have a problem, only two of the three images that I used appear and a slider bar continues to appear below the three dots, what can i do?

  • @kamdanibwp
    @kamdanibwp 5 месяцев назад

    Jazak Allah o Khairaa

  • @Human_Evolution-
    @Human_Evolution- Год назад

    Well done. I need this only for .mobile, and when on desktop I need to retain the image collage I've created. Any tips?

  • @yuganshmehta
    @yuganshmehta 9 месяцев назад

    Sir when i click on anchor link button at bottom it opens image i have set there in new tab. What should i do?

  • @evertonfonseca6017
    @evertonfonseca6017 Год назад +1

    Amazing... Your didactic is perfect!

  • @Trexvsunkasa
    @Trexvsunkasa 9 месяцев назад +1

    Brilliant!

  • @niftyandy9152
    @niftyandy9152 Год назад +1

    Your videos have been so helpful! Well done and thank you!

  • @kasparkado7303
    @kasparkado7303 4 месяца назад

    Thank you for this tutorial! It almost works for me, the only problem is that I can't see the dots and the slider only works with arrows, not with cursor. I did everything the way you did, except I have a header with a navigation bar in my project. Any solution for this? I'm an absolute beginner, it's my 1st week of coding. :)

  • @peridiusoverlord
    @peridiusoverlord 2 месяца назад

    Hey, I can't figure out how to navigate to your CodePen page. I'm trying to reference your work properly in an APA format document.

  • @JericJohnJuegos
    @JericJohnJuegos 21 день назад

    does anyone know how to remove the position change of the scroll bar after clicking the buttons? What happened to me was I added this to a wepage but it keeps on sliding back to the image itself. can anyone help me?

  • @justapoorliver3286
    @justapoorliver3286 9 месяцев назад +1

    bro you save me and my friend from group project thankyou very much i love you!!

  • @mehdi.drkixxix
    @mehdi.drkixxix 10 месяцев назад +1

    is it possible to add a autoplay video in this slider ??

  • @Hshdhxhdjsj
    @Hshdhxhdjsj 4 дня назад

    How do you remove the slider bar at the bottom. It has the dots and the slider

  • @closedforester338
    @closedforester338 Год назад

    how do I make whole thing stick to the Left side?

  • @wolfie8748
    @wolfie8748 Месяц назад

    Can I make these images responsive ? as In I want to put my personal projects so recruiter can click on them and go to another link?

  • @usamongwilliam
    @usamongwilliam 9 месяцев назад

    I wrapped the img in to direct and the img became zoomed in, can someone help me?

  • @achmadfauzanaliffitrah
    @achmadfauzanaliffitrah 5 месяцев назад +1

    and how to make this image auto move to left?

  • @andrewmurrie1538
    @andrewmurrie1538 Год назад

    great video thanks

  • @soyunaplanta7457
    @soyunaplanta7457 6 месяцев назад

    When I use scroll the page slides down, what can I do?

  • @NetherFrog
    @NetherFrog 5 месяцев назад

    Usefull and W video bro

  • @Lollipop-gx8yy
    @Lollipop-gx8yy 9 месяцев назад +1

    wow...its was smoooth

  • @raunak_saha
    @raunak_saha Год назад +1

    Bro this guy is very very underrated

  • @MrBumblebee
    @MrBumblebee 11 месяцев назад +5

    If i were scrolled down the window and clicked the href button , it seems that it takes me to the top of the window where the image slider is located.Is there a way to fixx that? other than that , the video is really cool.

    • @FLujb
      @FLujb Месяц назад

      hi! it seems that i have the same problem as you can you tell me how you fixed it
      pls

  • @ozclips.official
    @ozclips.official Месяц назад

    when i click on next button to move image my scrollbar scroll down, why???

  • @justkailash
    @justkailash 11 месяцев назад +1

    but in this tutorial .. the active slide is not showing in dots..

  • @toonice555
    @toonice555 6 месяцев назад

    Very clever using a tags!

  • @hariprasatht9082
    @hariprasatht9082 6 месяцев назад

    keep up the good work

  • @joshuasinlao4164
    @joshuasinlao4164 5 месяцев назад

    i have 3 images but it's skipping 1 images when I slide, any help?

  • @eduargalvan7123
    @eduargalvan7123 9 месяцев назад

    muchisimas gracias

  • @Idk65789
    @Idk65789 2 месяца назад

    Help whenever i click on the switch slide button it scrolls

  • @user-uc8cp9ob1v
    @user-uc8cp9ob1v 6 месяцев назад +1

    Is there a way to let the picture transition it automatically - but only, if the user does not hover or click on the slider for a minute? (only html and css)

  • @slowedrelaxed
    @slowedrelaxed 5 месяцев назад

    You Got a new Subscriber bro🙂

  • @5Farron_pv
    @5Farron_pv 11 месяцев назад +2

    great video ! I have a problem, i added your image slider into my page which has many images that you can scroll down, when i click on the anchor link, my page teleport himself into the image in the slider, how can I avoid that ? :(

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

      Thank you! Unfortunately it’s a bit hacky considering that’s the default behavior of anchor links. 😔 I should’ve been more clear about that, but I’ve shared some info in the comments about some work arounds.

  • @squaremale
    @squaremale 3 месяца назад

    Thanks! Question: why set position relative in .slider-wrapper if it's the default position value ?

    • @squaremale
      @squaremale 3 месяца назад

      Actually, the default position property is static. The reason .slider-wrapper position is set to relative is to make .slider-nav relative to .slider-wrapper when using the left property

  • @justkailash
    @justkailash Год назад

    will this work in all browser... ?

  • @Allformyequine
    @Allformyequine Год назад +1

    So with this will the images slide automatically? Or do you have to use the nav to move them? Thank you great stuff here!

    • @Skillthrive
      @Skillthrive  Год назад

      You have to use the nav bc this is basically a hacky way using CSS and anchor links.

    • @sushibali6522
      @sushibali6522 Год назад +4

      @@Skillthrive is there a way to make it loop but also keep the nav please?

  • @claudevonbrandis4772
    @claudevonbrandis4772 Год назад +1

    Great Work , I dont know where to find codepen , I actually would just love to use those images

    • @Skillthrive
      @Skillthrive  Год назад +1

      Thank you! It’s the Gumroad link in the description. You can pay what you want and it will redirect you to the CodePen. The images are from Unsplash.

  • @armaanbrar6406
    @armaanbrar6406 Год назад

    Nice explanation. How can I add arrows to the html or a swipe feature instead of the dots

    • @Skillthrive
      @Skillthrive  Год назад +4

      You’ll need to bring in JavaScript. It will need to track how many images you have and then calculate the end/beginning depending on which image is active.

  • @codingandEnglishlearning
    @codingandEnglishlearning Год назад

    Great information. Nice video. Subscribed the channel

  • @harshwagh7016
    @harshwagh7016 5 месяцев назад

    I have a problem that there is slider bar instead of these dots in the transition.

  • @typo7050
    @typo7050 5 месяцев назад

    why there is a scrollbar under the image?

  • @user-jd2rs8iw1g
    @user-jd2rs8iw1g 11 месяцев назад

    does this work for text to?

  • @JTJaniceTek
    @JTJaniceTek 8 месяцев назад +1

    how do i remove the scrollbar which allows me to scroll to the left and right (below the buttons)? let's say i just want to press the buttons in order to slide

    • @JTJaniceTek
      @JTJaniceTek 8 месяцев назад +1

      ok i've figured it out using overflow-x:hidden

    • @Skillthrive
      @Skillthrive  8 месяцев назад

      Glad you got it!

  • @astnla
    @astnla 5 месяцев назад

    I love this one! Just one question, is there anyway to make it slide by itself instead of having to click it, or will that require JS?

  • @Ali-rh4wl
    @Ali-rh4wl 8 месяцев назад +1

    Thanks for the content. But there is no need to use transiton. If you just add the scroll-behaviour:smooth to parent of pages. It works. Can you do it with just transition, not scroll behaviour.

    • @Skillthrive
      @Skillthrive  8 месяцев назад

      Great, thanks for sharing! I'll have to try that out.

  • @ustllys
    @ustllys Год назад +1

    Thank you

  • @minhphamcong7616
    @minhphamcong7616 Год назад +2

    How to go to next slide with a tag without scrolling to the top ?? I am using . Nice video thank you.

    • @Em_..
      @Em_.. 4 месяца назад

      are that problem already fixed?

  • @jkviedeos8598
    @jkviedeos8598 Год назад +1

    Your tutorial was extremely helpful. Thank you. I have the problem, that, whenever i click on the nav buttons, the page jumps down, so that the image slider comes to the upmost top of the slider and i'm really not sure why. Do you have any idea?

    • @Skillthrive
      @Skillthrive  Год назад

      Thank you! Glad you found it helpful.
      As for your problem, it sounds like you have something wrong with the anchor links. Also just double check your html.

    • @jkviedeos8598
      @jkviedeos8598 Год назад +1

      @@Skillthrive Hello, thank you for your fast response. So, i checked the HTML and the CSS and found nothing, that i would be aware could cause something like that. So i made a test html-file, linked it to another test css-file and copied all of your code exactly as it is. Then, for test purposes i created a div, with the class "Titel" and in the css i gave it the value "padding-top:30%;"; so that i have something above to control, if the page is still skiping. And yes, it actually is. It also happens in your CodePen, if you shrink down the sites size.
      I should note, that i'm using firefox.

    • @Skillthrive
      @Skillthrive  Год назад

      Hey, sorry for the late reply. For some reason your comment was flagged for review.
      Anyways, I looked into the issue and could only get it with Firefox developer edition. For some reason "aspect-ratio" is considered an invalid property. In the latest Firefox everything worked as expected.

    • @markf8639
      @markf8639 Год назад +3

      @@Skillthrive I think what is being suggested here is that on click, due to default browser behavior the browser is scrolling/jumping to the #(id) being clicked, as it should do with an internally linked href.
      Its happening on every browser i have tested.

    • @aaw9004
      @aaw9004 Год назад +2

      You are right. It was happen to me too and still don't know the solution

  • @ivonnea.462
    @ivonnea.462 11 месяцев назад

    With this example, is it possible to crop the images when styling for smaller screens? How would it be?

    • @scoggo
      @scoggo 10 месяцев назад

      Hello friend, did you find an answer for this?

    • @ivonnea.462
      @ivonnea.462 10 месяцев назад

      Not yet 😅

    • @santiiug
      @santiiug 3 месяца назад

      adjust aspect ratio

  • @mugriciolacri1390
    @mugriciolacri1390 9 месяцев назад +2

    Thanks for the tutorial. It works, but when i click on the dots and the images slide, the page scrolls down. I also tried your code and the same thing happens. This method doesn't seem viable.

    • @boyoishere
      @boyoishere 5 месяцев назад +1

      Hey there, have you found a solution to this yet? I'm having the same problem

  • @JeanRomanRoaming
    @JeanRomanRoaming Год назад

    This slider is great - however I am having trouble because the slider container jerks up under my menu navbar when the slide changes. Any idea how to fix this to make the slider container NEVER jerk up under the navbar???

    • @Skillthrive
      @Skillthrive  Год назад

      It’s because this is a “hack” that uses anchor tags to achieve the effect. Unfortunately, a side effect is the issue you’re running into. I covered this issue on our Discord, but this guy covered a solution in this post: markus.oberlehner.net/blog/super-simple-progressively-enhanced-carousel-with-css-scroll-snap/
      However, the method he uses isn’t recommend by Mozilla: developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoViewIfNeeded

    • @JeanRomanRoaming
      @JeanRomanRoaming Год назад

      ​@@Skillthrive Thank you for the response. I've read thru the links but I am unsure about how to implement the solution. I am a novice. Your help is much appreciated.
      Where Do I insert the code?
      Do I need a seperate .js file?
      or where do I insert - the code - it into my html or css? files ?
      do I insert in under: section class="container-slider"
      or div class="slider-wrapper",
      or div class="slider",
      or img id="slide-1". ????
      THE CODE:
      document.querySelector('#controls').addEventListener('click', (event) => {
      const $slide = document.querySelector(event.target.getAttribute('href'));
      if (!$slide) return;
      if ($slide.scrollIntoViewIfNeeded) {
      event.preventDefault();
      $slide.scrollIntoViewIfNeeded();
      } else if ($slide.scrollIntoView) {
      event.preventDefault();
      $slide.scrollIntoView();
      }
      });

  • @EmrrysRoyce
    @EmrrysRoyce 9 месяцев назад

    You didn’t link the css, how did you do it?

  • @Tech-tion55
    @Tech-tion55 26 дней назад +1

    Did he use
    overflow:hidden; ???

  • @HHcz
    @HHcz Год назад +1

    The whole thing works perfectly fine but there's a horizontal scroll bar that appears at the bottom. How do I get rid of it?
    edit: I changed the overflow-x to hidden and it solved it sooo why did we need to keep it at auto?

    • @Skillthrive
      @Skillthrive  Год назад

      So we could retain the scroll behavior. The codepen should have updated code that hides the scroll bar.

    • @HHcz
      @HHcz Год назад

      @@Skillthrive btw everytime I click on the dots to switch between pictures the whole page moves to a position where the container is positioned on the top. How do I make it so that it doesn't move me around?

    • @kossylazy2730
      @kossylazy2730 Год назад

      U can keep it and add overflow property and set it to hidden
      Overflow : hidden ; that did the job for me at least

    • @moonlightgirl2332
      @moonlightgirl2332 Год назад

      .slider::-webkit-scrollbar {
      display: none;
      }

  • @Badget007
    @Badget007 8 месяцев назад +2

    I just want to ask. How are you able to hide the slider nav bar?

    • @Skillthrive
      @Skillthrive  8 месяцев назад +1

      Nav bar? Do you mean scroll bar?

    • @domi_ka9153
      @domi_ka9153 7 месяцев назад +1

      @@Skillthriveyes he means that, i have the same problem

  • @munizrobson5292
    @munizrobson5292 Месяц назад +1

    Hey guys are the LINKS working for you?
    I mean, the arrows is ok, but when I click in the 3 dotes, it goes straight to the image without any effect at all

    • @vivekraghuwanshi9756
      @vivekraghuwanshi9756 Месяц назад +1

      Bro disable the scroll-snap-align: start; and it will work with effect

  • @rdzn.noccio9867
    @rdzn.noccio9867 2 месяца назад

    how is it possible that i can't see the animations?

  • @Vivek-up9st
    @Vivek-up9st 9 месяцев назад

    my hovers are not working please help me

  • @melodia6875
    @melodia6875 10 месяцев назад +1

    Subscribed

  • @svdden_strike
    @svdden_strike Месяц назад

    How can I make it auto slide

  • @vxruzdanz
    @vxruzdanz 4 месяца назад

    so it works but i still have the default slide bar thing at the bottom? what could that mean?

  • @ALPHA-vu7im
    @ALPHA-vu7im Год назад

    mata meka loku karana widiha kiyannako??

  • @ShadowAmitendu
    @ShadowAmitendu Год назад +2

    You got a SUB

  • @zemitsu6246
    @zemitsu6246 4 месяца назад

    how about the color changing of the slider nav when it is on the pic

    • @zemitsu6246
      @zemitsu6246 4 месяца назад

      sorry bad grammar but pls can u understand

  • @MZGAMEZZ
    @MZGAMEZZ 6 месяцев назад

    Bro how do you hide the scroll bar mines the scroll bar I want it to be like circles like yours

    • @boyoishere
      @boyoishere 5 месяцев назад

      it depends on the browser, but you can add this to ur CSS code. It worked for me:
      .slider {
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* Internet Explorer and Microsoft Edge */
      }
      .slider::-webkit-scrollbar {
      display: none; /* WebKit (Safari and Chrome) */
      }

  • @ar7xhd250
    @ar7xhd250 Год назад

    how to make this autoplay

  • @Franciscorsilvaaa
    @Franciscorsilvaaa Год назад +1

    I have no ideia why but when i click in the buttons my page kinda scrolls a bit down, if any 1 could help me o would apreciate it :)

    • @Skillthrive
      @Skillthrive  Год назад

      Yeah, I discussed this on our Discord. It's because this uses anchor links. I found a solution someone posted for a similar project (at the bottom) markus.oberlehner.net/blog/super-simple-progressively-enhanced-carousel-with-css-scroll-snap/
      Unfortunately it looks like this solution isn't recommended because it uses "scrollIntoViewIfNeeded()" which is non-standard.
      If anyone knows a better solution for production, let me know!

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

      @@Skillthrive "Unfortunately it looks like this solution isn't recommended because it uses "scrollIntoViewIfNeeded()" which is non-standard."
      where can I see this solution?

  • @hayk9122
    @hayk9122 3 месяца назад

    Hey there, I'm using Notepad++ and the command "flex" isn't working. Could you please tell me how to fix it or the name of another free app I can use for html and CSS please?

  • @ninguem9726
    @ninguem9726 6 месяцев назад +1

    The tutorial was great. But there is a scroll bar under the slideshow how do i hide it?

    • @keithfrank7178
      @keithfrank7178 6 месяцев назад +1

      I have the same problem. I've tried "overflow-x: hidden;" and it still doesn't work for me.

    • @boyoishere
      @boyoishere 5 месяцев назад

      it depends on the browser, but you can add this to ur CSS code. It worked for me:
      .slider {
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* Internet Explorer and Microsoft Edge */
      }
      .slider::-webkit-scrollbar {
      display: none; /* WebKit (Safari and Chrome) */
      }@@keithfrank7178