1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
| <!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>[CSS]Changement d'ordre</title>
<meta name="Author" content="NoSmoking">
<style>
html, body{
margin:0;
padding:0;
font-size:100%;
font: 1em/1.5 Verdana, sans-serif;
}
h1{
color: #006699;
}
div {
box-sizing:border-box;
}
div > div {
border: 1px solid #eee;
margin-bottom: 0;
width:50%;
float:left;
height:4em;
}
.passe_au_dessus{
float: right;
background:#EEF;
}
@media screen and (max-width:1024px) {
div > div{
width: 100%;
text-align: center;
}
}
</style>
</head>
<body>
<h1>Changement d'ordre</h1>
<div>
<div>item #1</div>
<div>item #2</div>
</div>
<div>
<div class="passe_au_dessus">item #4</div>
<div>item #3</div>
</div>
<div>
<div>item #5</div>
<div>item #6</div>
</div>
<div>
<div class="passe_au_dessus">item #8</div>
<div>item #7</div>
</div>
</body>
</html> |
Partager