Skip to content

Instantly share code, notes, and snippets.

@walidum
Created April 25, 2021 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walidum/8ac1dc0eb11e37c8fdd32d7a397b4c7b to your computer and use it in GitHub Desktop.
Save walidum/8ac1dc0eb11e37c8fdd32d7a397b4c7b to your computer and use it in GitHub Desktop.
Slider style
body {
margin: 0;
}
.main {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.slider {
width: 80%;
height: 60%;
border-radius: 1rem;
}
.slider img {
width: 100%;
height: 100%;
border-radius: 1rem;
}
.actions {
width: 100%;
height: 3rem;
display: flex;
justify-content: center;
align-items: center;
margin-top: 1rem;
}
.next, .previous {
width: 10rem;
height: inherit;
border-radius: .5rem;
display: flex;
justify-content: center;
align-items: center;
background-color: #161658;
margin-right: 1rem;
cursor: pointer;
}
.next span, .previous span {
color: #ffffff;
font-weight: bold;
font-size: 1rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment