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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
/* parametres par defaut */
/* type bloc */
html, body, div, p, h1, h2, h3, table, tr{
clear:both;
margin:0;
padding:0;
font-size: 1em;
}
th, td{
margin:0;
padding:2px 5px;
font-size: 1em;
}
p{
padding:2px 5px;
}
#content{
border:5px solid blue;
}
div.my_block{
float: left;
margin:10px;
border: 5px solid black;
}
div.my_block h3{
padding:0 0 0 20px;
font-size: 1em;
background-color:yellow;
}
div.my_block table{
margin:2px; /* ??? */
border-collapse:collapse;
border:none;
}
div.my_block th, div.my_block td{
margin:0;
border:3px solid white;
}
div.my_block th{
background-color:blue;
color:white;
}
div.my_block td{
background-color:red;
color:white;
}
div.my_block p{
background-color:purple;
}
</style>
</head>
<body>
<div id="content">
<p>ceci est du texte 1</p>
<div class="my_block">
<h3>Mon titre</h3>
<table>
<thead>
<tr>
<th>fdsfdsssdqfsdfsdfsdfqsdfqqsdfsdfqsdfqqsdfsdfqsdfqqdfsdfsdfq</th><th>codsqfdsdfsdfsdfsdfqsdfsdfqqsdfsdfqdsfl2</th><th>cdfsdfsdfsdfqsdfqsdfqsdfsdfsdfol3</th>
</tr>
</thead>
<tbody>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>1</td><td>2</td><td>3</td></tr>
</tbody>
</table>
<p>salut les gas !</p>
</div>
<p>ceci est du texte 2<br/>ceci est du texte 3</p>
</div>
</body>
</html> |
Partager