Je suis en train de réalisé une beta et j'ai besoin d'aide car j'aimerais mettre une image de chaque coté du site seulement je n'arrive pas à bouger la deuxième à droite. Voici le site si vous voulez éditer le code :
Ou voici le code, le problème est la ligne en rouge.
Html :
Css :
Vous devez être inscrit pour voir les liens ! Inscrivez-vous ou connectez-vous ici.
Ou voici le code, le problème est la ligne en rouge.
Html :
Code:
<!DOCTYPE html>
<html class="no-js" lang="Fr">
<head>
<title>Code Radio</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<meta name="description" content="">
<meta name="keywords" content="">
<link rel="stylesheet" href="style.css" >
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
</head>
<body>
<div id="intro">
<img src="img/header.png" border=0 width=400 height=200>
</div>
<div id="intro2">
<img src="img/header3.png" border=0 width=400 height=200>
</div>
<br/><br/>
<ul class="topnav">
<li><a class="active" href="#accueil">Accueil</a></li>
<li><a href="#news">News</a></li>
<li><a href="#l-équipe">L'équipe</a></li>
<li><a href="#planning">Planning</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<br/><br/>
<div class="w3-content w3-section" style="max-width:1000px">
<img class="mySlides" src="img/header.png" style="width:100%">
<img class="mySlides" src="img/header.png" style="width:100%">
<img class="mySlides" src="img/header.png" style="width:100%">
</div>
<script>
var myIndex = 0;
carousel();
function carousel() {
var i;
var x = document.getElementsByClassName("mySlides");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
myIndex++;
if (myIndex > x.length) {myIndex = 1}
x[myIndex-1].style.display = "block";
setTimeout(carousel, 2000);
}
</script>
<section class="wrapper">
<div class="container-fostrap">
<div class="content">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-4">
<div class="card">
<a class="img-card" href="#">
<img src="img/header.png" />
</a>
<div class="card-content">
<h4 class="card-title">
<a href="#"> Article 1
</a>
</h4>
<p class="">
Texte 1
</p>
</div>
<div class="card-read-more">
<a href="#" class="btn btn-link btn-block">
En savoir plus
</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="card">
<a class="img-card" href="#">
<img src="img/header.png" />
</a>
<div class="card-content">
<h4 class="card-title">
<a href="#"> Article 1
</a>
</h4>
<p class="">
Texte 1
</p>
</div>
<div class="card-read-more">
<a href="#" class="btn btn-link btn-block">
En savoir plus
</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="card">
<a class="img-card" href="#">
<img src="img/header.png" />
</a>
<div class="card-content">
<h4 class="card-title">
<a href="#"> Article 1
</a>
</h4>
<p class="">
Texte 1
</p>
</div>
<div class="card-read-more">
<a href="#" class="btn btn-link btn-block">
En savoir plus
</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="card">
<a class="img-card" href="#">
<img src="img/header.png" />
</a>
<div class="card-content">
<h4 class="card-title">
<a href="#"> Article 1
</a>
</h4>
<p class="">
Texte 1
</p>
</div>
<div class="card-read-more">
<a href="#" class="btn btn-link btn-block">
En savoir plus
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<p align="center">© 2017 Code Radio - Tous droits réservés</p>
Css :
Code:
/* Page */
html, body {
margin: 0;
padding: 0;
-moz-box-sizing: border-box;
box-sizing: border-box;
height: 100%;
width: 100%;
font-family: 'Roboto', sans-serif;
font-weight: 400;
}
body {
font-family: Verdana, sans-serif;
font-size: 100%;
}
h1 {
font-size: 200%;
color: navy;
text-align: center;
}
h2 {
font-size: 150%;
color: red;
padding-left: 15px;
}
p,ul,li,td {
color: black;
}
a:link {
color: #4abafc;
}
a:visited {
color: #4abafc;
}
/* Menu */
ul.topnav {
list-style-type: none;
margin: 0;
padding-left: 400px;
overflow: hidden;
background-color: #4abafc;
}
ul.topnav li {float: left;}
ul.topnav li a {
display: block;
color: white;
text-align: center;
padding: 20px 30px;
text-decoration: none;
}
ul.topnav li a:hover:not(.active) {background-color: #4abafc;}
ul.topnav li a.active {background-color: #a8dfff;}
ul.topnav li.right {float: right;}
@media screen and (max-width: 600px){
ul.topnav li.right,
ul.topnav li {float: none;}
}
/* Image d'intro */
#intro img {
position: fixed;
}
#intro2 img {
position: fixed;
padding-left: 750px;
}
/* Slider */
.mySlides {display:none;}
/* Article */
@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,900);
.wrapper {
display: table;
height: 100%;
width: 100%;
}
.container-fostrap {
display: table-cell;
padding: 1em;
text-align: center;
vertical-align: middle;
}
.fostrap-logo {
width: 100px;
margin-bottom:15px
}
h1.heading {
color: #fff;
font-size: 1.15em;
font-weight: 900;
margin: 0 0 0.5em;
color: #4abafc;
}
@media (min-width: 450px) {
h1.heading {
font-size: 3.55em;
}
}
@media (min-width: 760px) {
h1.heading {
font-size: 3.05em;
}
}
@media (min-width: 900px) {
h1.heading {
font-size: 3.25em;
margin: 0 0 0.3em;
}
}
.card {
display: block;
margin-bottom: 20px;
line-height: 1.42857143;
background-color: #fff;
border-radius: 2px;
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
transition: box-shadow .25s;
}
.card:hover {
box-shadow: 0 8px 17px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}
.img-card {
width: 100%;
height:200px;
border-top-left-radius:2px;
border-top-right-radius:2px;
display:block;
overflow: hidden;
}
.img-card img{
width: 100%;
height: 200px;
object-fit:cover;
transition: all .25s ease;
}
.card-content {
padding:15px;
text-align:left;
}
.card-title {
margin-top:0px;
font-weight: 700;
font-size: 1.65em;
}
.card-title a {
color: #000;
text-decoration: none !important;
}
.card-read-more {
border-top: 1px solid #4abafc;
}
.card-read-more a {
text-decoration: none !important;
padding:10px;
font-weight:600;
text-transform: uppercase
}