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
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Un titre</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<style type="text/css">
html, body {
margin: 0;
padding: 0;
text-align: center;
background-color: #cd853f;
color : #344979;
}
#conteneur {
position: relative;
margin: 0 auto;
width: 760px;
text-align: left;
border : 1px solid #fff;
background-color: #ffd;
font-family: 'Trebuchet MS', Verdana, sans-serif;
}
p {
margin : 1em;
}
.p_i {
display : inline;
background-color: #fff;
}
</style>
</head>
<body>
<div id="conteneur">
<p class="p_i">Paragraphe en inline</p>
<a href="http://www.developpez.net/forums/m3886656-1/">préférer div ou span</a>
<p class="p_i">Paragraphe en inline</p>
<p>Paragraphe</p>
<p>Paragraphe</p>
</div>
</body>
</html> |
Partager