Danke!Ich schau gleich mal!
UPDATE:Hat funktioniert!Nochmals vielen Dank an alle!
Danke!Ich schau gleich mal!
UPDATE:Hat funktioniert!Nochmals vielen Dank an alle!
Ähmmmm
Bei einer kleineren Breite als 800px .carousel__item ein margin-top von 90px verpassen
OK.Wie mach ich das genau?
Danke schon jetzt an alle!
Tobi
Was ist den damit genau?
https://www.pic-upload.de/view-35761965/Unbenannt.png.html
Der Header verdeckt die Galerie.
Könntest Du den HTML-Code auch nochmal schicken, damit ich das ganze mal testen und bearbeiten kann?
<!doctype html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Home</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="lory.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script>
</head>
<body>
<!-- Preloader -->
<div id="preloader">
<div class="spinner"></div>
</div>
<div class="wrapper">
<header>
<nav>
<div class="menu-icon">
<i class="fa fa-bars fa-2x"></i>
</div>
<div class="logo">
Tobentu
</div>
<div class="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Downloads</a></li>
<li><a href="/changelog">Über mich</a></li>
<li><a href="#">Kontakt</a></li>
</ul>
</div>
</nav>
<!--Slider-->
<div class="carousel js-carousel">
<figure class="carousel__frame js-carousel__frame">
<div class="carousel__slides js-carousel__slides">
<img src="image1.jpg" class="carousel__item" />
<img src="image2.jpg" class="carousel__item" />
<img src="image3.jpg" class="carousel__item" />
<img src="image4.jpg" class="carousel__item" />
<img src="image5.jpg" class="carousel__item" />
</div>
<button class="carousel__prev js-carousel__prev">
<i class="fas fa-chevron-left"></i>
</button>
<button class="carousel__next js-carousel__next">
<i class="fas fa-chevron-right"></i>
</button>
</figure>
</div>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
run();
});
function run() {
var slider = document.querySelector('.js-carousel');
lory(slider, {
infinite: 1,
enableMouseEvents: true,
classNameFrame: 'js-carousel__frame',
classNameSlideContainer: 'js-carousel__slides',
classNamePrevCtrl: 'js-carousel__prev',
classNameNextCtrl: 'js-carousel__next',
});
}
</script>
</header>
<div class="content">
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
</div>
<br>
<!-- <div>
<iframe src="http://tobentu.de/iframe" style="height:auto;width:auto;"></iframe>
</div>
-->
<script type="text/javascript">
// Menu-toggle button
$(document).ready(function() {
$(".menu-icon").on("click", function() {
$("nav ul").toggleClass("showing");
});
});
// Scrolling Effect
$(window).on("scroll", function() {
if($(window).scrollTop()) {
$('nav').addClass('black');
}
else {
$('nav').removeClass('black');
}
})
</script>
<script>
1
2
3
4
$(document).ready(function($) {
// hide preloader when everthing in the document load
$('#preloader').css('display', 'none');
});
</script>
</body>
<br>
<footer>
<script type="text/javascript" src="https://www.whomania.com/count/u64"></script><br>
<a href='http://xn--besucherzhlerkostenlos-84b.com/'>Besucher auf meiner Webseite</a> <script type='text/javascript' src='https://www.whomania.com/ctr?id=852e20c4e6f7d807565907037be2eb66ecf66711'></script>
<div>
</div>
</footer>
</html>
Alles anzeigen
Hallo zusammen,
ich habe ein Problem mit einer Responsiven Galerie ,die ich auf YouTube gefunden habe (
Diese habe ich gleich mal eingebaut,und sie hat funktioniert.Jetzt habe ich aber ein Problem mit der Position am Smartphone:
Wie man sehen konnte war die Galerie verdeckt.
Jetzt ist meine Frage,was ich machen soll,um die Galerie zu sehen.
Hier die CSS der Galerie:
body {
margin: 0;
padding: 0;
}
.carousel__frame {
width: 100%;
height: 100vh;
position: relative;
overflow: hidden;
white-space: nowrap;
margin: 0;
padding: 0;
}
img {
width: auto;
height: auto;
background-size: cover;
display: table;
z-index: -1;
background-size: auto;
position:center;
bottom:0px;
}
.carousel__slides {
display: block;
}
.carousel__item {
width: 100%;
height: auto;
position: relative;
display: inline-block;
}
.carousel__prev, .carousel__next {
font-size: 1rem;
position: absolute;
top: 50%;
}
.carousel__prev {
left: 2rem;
}
.carousel__next {
right: 2rem;
}
button:focus {
outline: none;
}
button {
background: rgba(0,0,0,0);
border: none;
color: #fff;
}
footer {
background-color: black;
padding:10px;
bottom:0;
left:0;
right:0;
}
a.link {
text-decoration: none;
font-family: "Helvetica Neue",sans-serif;
font-weight: lighter;
font-size: 20px;
z-index: 999;
text-decoration-color: White;
color:white;
text-align: right;
}
Alles anzeigen
Und die andere CSS:
#preloader {
position: fixed;
left: 0;
top: 0;
z-index: 9999;
width: 100%;
height: 100%;
overflow: visible;
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
}
.spinner {
width: 40px;
height: 40px;
background-color: #333;
margin: 100px auto;
-webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
animation: sk-rotateplane 1.2s infinite ease-in-out;
}
@-webkit-keyframes sk-rotateplane {
0% { -webkit-transform: perspective(120px) }
50% { -webkit-transform: perspective(120px) rotateY(180deg) }
100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) }
}
@keyframes sk-rotateplane {
0% {
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
} 50% {
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
} 100% {
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
}
}
html, body {
margin: 0;
padding: 0;
width: 100%;
z-index:999;
}
body {
font-family: "Helvetica Neue",sans-serif;
font-weight: lighter;
z-index:999;
}
header {
width: 100%;
height: 100vh;
background: url() no-repeat 50% 50%;
background-size: cover;
z-index:999;
}
.content {
width: 94%;
margin: 4em auto;
font-size: 20px;
line-height: 30px;
text-align: justify;
z-index:999;
}
.logo {
line-height: 60px;
position: fixed;
float: left;
margin: 16px 46px;
color: #fff;
font-weight: bold;
font-size: 20px;
letter-spacing: 2px;
z-index:999;
}
nav {
position: fixed;
width: 100%;
line-height: 60px;
z-index:999;
}
nav ul {
line-height: 60px;
list-style: none;
background: rgba(0, 0, 0, 0);
overflow: hidden;
color: #fff;
padding: 0;
text-align: right;
margin: 0;
padding-right: 40px;
transition: 1s;
z-index:999;
}
nav.black ul {
background: #000;
z-index:999;
}
nav ul li {
display: inline-block;
padding: 16px 40px;;
z-index:999;
}
nav ul li a {
text-decoration: none;
color: #fff;
font-size: 16px;
z-index:999;
}
.menu-icon {
line-height: 60px;
width: 100%;
background: #000;
text-align: right;
box-sizing: border-box;
padding: 15px 24px;
cursor: pointer;
color: #fff;
display: none;
z-index:999;
}
@media(max-width: 786px) {
.logo {
position: fixed;
top: 0;
margin-top: 16px;
z-index:999;
}
nav ul {
max-height: 0px;
background: #000;
z-index:999;
}
nav.black ul {
background: #000;
z-index:999;
}
.showing {
max-height: 34em;
z-index:999;
}
nav ul li {
box-sizing: border-box;
width: 100%;
padding: 24px;
text-align: center;
z-index:999;
}
.menu-icon {
display: block;
z-index:999;
}
/*Soclai media icons*/
Alles anzeigen
Vielen Dank im voraus!
Tobi
PS:Bin noch Anfänger!
HTML-Seminar.de - mit Videos zum schnellen Lernen, wie man eine Website selbst erstellt.