1
people I’m with this slide trying to make it responsive only it’s covering some things that comes just below the slide (I’m closing the tag in the right place), and the image when I decrease is showing all right more when I let the normal size looks horrible. help me. I already appreciate any kind of help ! <3
* {margin:0;
padding: 0;
font-size: 100%;
border:none;
outline:none;
font-weight: 300;
box-sizing: border-box;
}
img{
max-width:100%;
}
.inner-wrapper {
width: 100%;
height: 470px;
position: absolute;
top: 0;
left: 0;
margin-bottom: 0px;
overflow: hidden;
}
#slider-wrapper {
max-height: 60em;
margin: 1em auto;
position: relative;
}
#s1 {
padding: 6px;
background: #000000;
position: absolute;
left: 50%;
bottom: 25px;
margin-left: -36px;
border-radius: 20px;
opacity: 0.3;
cursor: pointer;
z-index: 999;
}
#s2 {
padding: 6px;
background: #000000;
position: absolute;
left: 50%;
bottom: 25px;
margin-left: -12px;
border-radius: 20px;
cursor: pointer;
z-index: 999;
}
#s3 {
padding: 6px;
background: #000000;
position: absolute;
left: 50%;
bottom: 25px;
margin-left: 12px;
border-radius: 20px;
cursor: pointer;
z-index: 999;
}
#s4 {
padding: 6px;
background: #000000;
position: absolute;
left: 50%;
bottom: 25px;
margin-left: 36px;
border-radius: 20px;
cursor: pointer;
z-index: 999;
}
#s1:hover,
#s2:hover,
#s3:hover,
#s4:hover {
opacity: .50;
}
.control {
display: none;
}
#Slide1:checked ~ .overflow-wrapper {
margin-left: 0%;
}
#Slide2:checked ~ .overflow-wrapper {
margin-left: -100%;
}
#Slide3:checked ~ .overflow-wrapper {
margin-left: -200%;
}
#Slide4:checked ~ .overflow-wrapper {
margin-left: -300%;
}
#Slide1:checked + #s1 {
opacity: 1;
}
#Slide2:checked + #s2 {
opacity: 1;
}
#Slide3:checked + #s3 {
opacity: 1;
}
#Slide4:checked + #s4 {
opacity: 1;
}
.overflow-wrapper {
width: 400%;
height: 100%;
position: absolute;
top: 0;
left: 0;
overflow-y: hidden;
z-index: 1;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
transition-duration: .5s;
transition-timing-function: ease-in;
transition-delay: 0.3s;
}
.slide img {
width: 25%;
float: left;
position: relative;
}
<div id="slider-wrapper">
<div class="inner-wrapper">
<input checked type="radio" name="slide" class="control" id="Slide1" />
<label for="Slide1" id="s1"></label>
<input type="radio" name="slide" class="control" id="Slide2" />
<label for="Slide2" id="s2"></label>
<input type="radio" name="slide" class="control" id="Slide3" />
<label for="Slide3" id="s3"></label>
<input type="radio" name="slide" class="control" id="Slide4" />
<label for="Slide4" id="s4"></label>
<div class="overflow-wrapper">
<a class="slide"><img src="https://i1.wp.com/gamelogia.com.br/wp-content/uploads/2016/11/gamer.jpg?resize=1280%2C640&ssl=1" /></a>
<a class="slide"><img src="https://compass-ssl.xbox.com/assets/dc/48/dc486960-701e-421b-b145-70d04f3b85be.jpg?n=Game-Hub_Content-Placement-0_New-Releases-No-Copy_740x417_02.jpg" /></a>
<a class="slide" ><img src="https://blog.sympla.com.br/wp-content/uploads/2018/08/Como-organizar-um-campeonato-de-v%C3%ADdeo-game-Capa.png" /></a>
<a class="slide"><img src="http://noticias.universia.com.br/net/images/cultura/e/ev/eve/evento-sao-paulo-relacao-games-artes-noticias.jpg" /></a>
</div>
</div>
</div>
Hugo, how do you test the rendering this way in the browser? maybe this isn’t the right place to ask this but don’t know where to ask beyond here.
– Renan
@Renan on Chrome presses F12, ai next to the Inspect arrow has an icon that when you click on it enables this responsive window with this resize etc
– hugocsl
Vlw, I made it.
– Renan
You are a God !! I LOVE YOU <3
– caiquesey
@caiquesey dough
– hugocsl