Dans les fichiers ci-joints, quand j’agrandis mon écran la section ".card-container" perd ses propriétés ? alors que lorsqu'elle se trouve dans les limites du "media query" (CSS) elle apparait bien avec ses propriétés...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<div class="header">
<img class="alignLeft" ; src="image/logo_apla.jpg" alt="Logo">
<img class="alignRight" ; src="image/photo.png" alt="Arceau">
<h1 class="alignCenter">Auto</h1>
</div>
<div class="row">
<div class="col-3 menu">
<ul>
<li><a href="page/intervention.php">Intervention</a></li>
<li>Catalogue</li>
<li>Liens</li>
<li>Contact</li>
</ul>
</div>
<div class="col-9">
<h1>Un peu d'histoire</h1>
<p>blabla </p>
<p>blabla blabla</p>
<div class="card-container">
<span class="pro">PRO</span>
<img class="round" src="image/totot.jpg" alt="user" />
<h3>Ricky Park</h3>
<h6>New York</h6>
<p>User interface designer and <br /> front-end developer</p>
<div class="buttons">
<button class="primary">
Message
</button>
</div>
<div class="skills">
<h6>Skills</h6>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
</div>
</div>
</div>
</div>
<div class="footer">
</div>
</body>
</html>
* {
box-sizing: border-box;
background-image: url("fond.jpg");
}
.row::after {
content: "";
clear: both;
display: table;
}
[class*="col-"] {
float: left;
padding: 5px;
}
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%; border-style:double; margin: 5px 0 0 0;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}
html {
font-family: "Lucida Sans", sans-serif;
}
.header {
background-color: #726f6f;
color: #ffffff;
padding: 5px;
*text-align : center;
}
img.alignLeft{
float: left;
border-radius: 5px;
opacity: 0.8;
}
img.alignRight{
float: right;
border-radius: 5px;
opacity: 0.8;
}
h1.alignCenter{
text-align: center;
}
.footer {
background-color: #726f6f;
color: #ffffff;
padding: 5px;
margin: inherit;
text-align : center;
}
.menu ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.menu li {
padding: 8px;
margin-bottom: 7px;
background-color: #33b5e5;
color: #ffffff;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.menu li:hover {
background-color: #0099cc;
}
a:hover {
cursor: pointer;
}
@media only screen and (max-width: 680px) {
/* For mobile phones: */
.menu {width: 100%;}
/***************************************/
h3 {
margin: 10px 0;
}
h6 {
margin: 5px 0;
text-transform: uppercase;
}
p {
font-size: 14px;
line-height: 21px;
}
.card-container {
background-color: #231e39;
border-radius: 5px;
box-shadow: 0px 10px 20px -10px rgba(0, 0, 0, 0.75);
color: #b3b8cd;
padding-top: 30px;
position: relative;
width: 350px;
max-width: 100%;
text-align: center;
}
.card-container .pro {
color: #231e39;
background-color: #febb0b;
border-radius: 3px;
font-size: 14px;
font-weight: bold;
padding: 3px 7px;
position: absolute;
top: 30px;
left: 30px;
}
.card-container .round {
border: 1px solid #03bfcb;
border-radius: 50%;
padding: 7px;
}
button.primary {
background-color: #03bfcb;
border: 1px solid #03bfcb;
border-radius: 3px;
color: #231e39;
font-family: Montserrat, sans-serif;
font-weight: 500;
padding: 10px 25px;
}
button.primary {
background-color: transparent;
color: #02899c;
}
.skills {
background-color: #1f1a36;
text-align: left;
padding: 15px;
margin-top: 30px;
}
.skills ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.skills ul li {
border: 1px solid #2d2747;
border-radius: 2px;
display: inline-block;
font-size: 12px;
margin: 0 7px 7px 0;
padding: 7px;
}