How to scale down my slider so it has space around it
14:02 10 Dec 2025

thank you in advance for any advice you can offer me!

I am trying to give some blank space around this slider I made for a medical marijuana grow facility website.

I can't tell if what i'm asking for is impossible because of how I have set up this slider or if i'm just not using the right command on the figure or slider portion. Or, perhaps I can place the whole thing in a container/div and scale it down some that way. Any advice would be appreciated. Below is my html first and then my css.



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body { /* To ensure the background is black across all browsers and scenarios, you can target both html and body and also remove default margins/paddings.*/
  margin: 0;
  padding: 0;
  background-color: black; /* or #000000 */
  min-height: 100vh; /* Ensures the background covers the full viewport height */
}

body {
    font-family: 'Lobster';
    font-size: 23px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: #fff; /* is this white going to be a problem child that conflicts with the aesthetic? */

}

ul { 
    list-style: none;
    margin-top: 30px;

}

img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.logo {
    width: 75%;
    display: flex;
    justify-content: center;
}

.main-menu ul {
    display: flex;
    gap: 30px;
}

/* Navbar */
.navbar {
    padding: 20px;
}

.navbar .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/*-- CSS Image Slider --*/
#slider figure {
    width: 500%;
    margin: 0;
    left: 0;
    position: relative;
    animation: 20s slider infinite;
}

#slider figure img {
    width: 20%;
    float: left;
}

#slider {
    overflow: hidden;
}


@keyframes slider {
    0% {
        left: 0;
    }
    20% {
        left: 0%;
    }
    25% {
        left: -100%;
    }
    45% {
        left: -100%;
    }
    50% {
        left: -200%;
    }
    70% {
        left: -200%;
    }
    75% {
        left: -300%;
    }
    95% {
        left: -300%;
    }
    100% {
        left: -400%;
    }
}


/* Utility Classes unsure if i need these just yet */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}





    
    
    Reign Gardens Website
    
    
    
    
    


    



Reign Gardens Medical Marijuana Shot Slider 1 Reign Gardens Medical Marijuana Shot Slider 2 Reign Gardens Medical Marijuana Shot Slider 3 Reign Gardens Medical Marijuana Shot Slider 4 Reign Gardens Medical Marijuana Shot Slider 1

html css slider