100-project-100-days-website/100_projects/37-image-slider/style.css
2023-03-31 03:08:29 +03:00
Ask

45 lines
865 B
CSS

{f3b4abeffb4e04fcd219c6a76be901be3bcfb42f true 865 style.css 0xc002a98150}

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background:linear-gradient(to right, #D4D3DD, #EFEFBB);
}
.img{
width: 80%;
height: 80vh;
background-image: url("./img/1.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
margin: 30px auto;
}
.btn-left{
position: absolute;
top: 50%;
left: 0;
color: #fff;
transform: translate(-50%, -50%);
font-size: 1.5rem;
padding: 15px;
border-radius: 11px;
text-align: center;
backdrop-filter: blur(5px);
cursor: pointer;
}
.btn-right{
position: absolute;
top: 50%;
right:-35px;
color: #fff;
transform: translate(-50%, -50%);
font-size: 1.5rem;
padding: 15px;
border-radius: 11px;
text-align: center;
backdrop-filter: blur(5px);
cursor: pointer;
}