Baste da ja nun schon seit Wochen rum und vieles ist geschehen und gelernt worden. Aber wenn ich den Browser zusammenschiebe, offenbaren sich meine eklatanten Bemühungen.
Dass ich für die Mobile Ansicht Media Querry bemühen muss erwarte ich. Aber beim zusammenschieben des Browsers, sieht man wies sich der Content in dem Falle die Bilder nicht responsive verhält Von der Slider-Navigation ganz zu schweigen. Wo fängt man da jetzt am besten an. Ich zeige euch mal den code und den Link wo man das Problem visull begutachten kann.
CSS
* {
box-sizing: border-box;
}
.slider-wrapper {
display: flex;
justify-content: center;
align-items: center;
margin: 1rem;
position: relative;
overflow: hidden;
}
.slides-container {
height: calc(100vh - 2rem);
width: 75%;
display: flex;
justify-self: center;
align-items: center;
overflow: scroll;
scroll-behavior: smooth;
list-style: none;
margin: 0;
padding: 0;
}
.slides-container {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
}
/* WebKit */
.slides-container::-webkit-scrollbar {
width: 0;
height: 0;
}
.slide-arrow {
position: absolute;
display: flex;
top: 0;
bottom: 0;
margin: auto;
height: 4rem;
background-color: white;
border: none;
width: 2rem;
font-size: 3rem;
padding: 0;
cursor: pointer;
opacity: 0.5;
transition: opacity 100ms;
}
.slide-arrow:hover,
.slide-arrow:focus {
opacity: 1;
}
#slide-arrow-prev {
left: 0px;
padding-left: 0.25rem;
border-radius: 0 2rem 2rem 0;
}
#slide-arrow-next {
right: 0;
padding-left: 0.75rem;
border-radius: 2rem 0 0 2rem;
}
.slide {
width: 80%;
height: 80%;
flex: 1 0 100%;
display: flex;
justify-content:center;
align-items: center;
background-color: #300d77;
}
.slide > img {
width: 90%;
height: 90%;
}
Alles anzeigen
HTML
<section id="galerie">
<div class="slider-wrapper">
<button class="slide-arrow" id="slide-arrow-prev">
‹
</button>
<button class="slide-arrow" id="slide-arrow-next">
›
</button>
<div class="slides-container" id="slides-container">
<div class="slide"><img src="images/slider/resized/walach1.jpg" alt="Image 1"></div>
<div class="slide"><img src="images/slider/resized/walach2.jpg" alt="Image 2"></div>
<div class="slide"><img src="images/slider/resized/walach3.jpg" alt="Image 3"></div>
<div class="slide"><img src="images/slider/resized/walach4.jpg" alt="Image 4"></div>
<div class="slide"><img src="images/slider/resized/walach5.jpg" alt="Image 5"></div>
<div class="slide"><img src="images/slider/resized/walach6.jpg" alt="Image 6"></div>
<div class="slide"><img src="images/slider/resized/walach7.jpg" alt="Image 7"></div>
<div class="slide"><img src="images/slider/resized/walach8.jpg" alt="Image 8"></div>
<div class="slide"><img src="images/slider/resized/walach9.jpg" alt="Image 9"></div>
</div>
</div>
</section>
Alles anzeigen
Dann mal gute Nacht