Probleme bewegen mein css image slider
Ich habe ein Tutorial auf youtube gefolgt, wie eine CSS-Bild Schieber zu machen. Ich habe es geschafft, es zu zentrieren, aber ich habe Probleme, es hochzuziehen und die Grenze um das Bild herum zu machen. Wie kann ich das machen. Vielen Dank.
.sidebar {
\t position: fixed;
\t height:100%;
\t left: 0;
\t top: 0px;
\t width: 300px;
\t background:#808080;
\t border: 3px solid #555;
}
h1 {
\t text-align: center;
\t padding-left: 300px;
\t font-size: 50px;
\t font-family: "Verdana", Geneva, sans-serif;
\t color:#f2f2f2;
}
h2 {
\t text-align: center;
\t padding-left: 300px;
\t margin-top:30px;
\t color:#e6e6e6;
\t font-family: "Verdana", Geneva, sans-serif;
}
.sideimage {
\t text-align: center;
\t padding-top: 30px;
}
.con {
\t border: 5px solid red;
\t width: 700px;
\t height: 500px;
\t margin: 300px auto;
\t overflow: hidden;
\t padding-left: 300px
}
.img {
\t position: absolute;
\t width: 700px;
\t height: 500px;
\t animation: mm 15s infinite;
\t -webkit-animation: mm 15s infinite;
\t opacity: 0;
}
\t
@keyframes mm{
\t 10%{opacity:1}
\t 45%{opacity:0}
}
@-webkit-keyframes mm{
\t 10%{opacity:1}
\t 45%{opacity:0}
}
img:nth-child(0){animation-delay: 0s;-webkit-animation-delay: 0s;}
img:nth-child(1){animation-delay: 5s;-webkit-animation-delay: 5s;}
img:nth-child(2){animation-delay: 10s;-webkit-animation-delay: 10s;}
.main_image {
\t text-align: center;
\t padding-left: 300px;
\t margin-top: 100px;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 300px;
background-color: #66b3ff;
}
li a {
display: block;
color: #000000;
padding: 8px 0 8px 16px;
text-decoration: none;
\t font-size: 30px;
\t font-family: "Verdana", Geneva, sans-serif;
\t border-bottom: 3px solid #555;
}
li a:hover {
background-color:#27C0FD;
color: #000000;
}
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="index.css">
<html>
<body bgcolor="#3399ff">
<h1> Informational Tech Site</h1>
<h2>This website is the place in which you can find all the information about what building games actually looks like in a workplace environment.
</h2>
<div class="con">
<img src="images/image slider1.png" class="img">
<img src="images/image slider 2.png" class="img">
<img src="images/image slider 3 .png" class="img">
</div>
<body>
<div class="sidebar">
\t <ul>
\t <div class="sideimage"><img src="images/website logo draft.png" height="70" width="110"/></div>
\t
\t <li><a href="index.html">Home</a> </li>
\t <li><a href="page 2.html">page 2</a></li>
\t <li><a href="page 3.html">page 3</a></li>
\t <li><a href="page 4.html">page 4</a></li>
\t <li><a href="page 5.html">page 5</a></li>
</ul> \t
</div>
</body>
Hier ist der Code Ich möchte den Bildregler im blauen Bereich zentrieren. https: // jsfiddle.net/wcek0eo5/ – Droid2