Div vertical et horizontale.
Bonjour,
Je galère à trouver une solution à ce problème.
Comment faire pour que les div rose se touche (sans toucher a leurs taille).
Code:
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
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<meta name="generator" content="PSPad editor, www.pspad.com">
<style> body { font-family: 'Lucida Grande', Verdana, Arial, sans-serif; }
.box {
border: 3px solid black;
background-color:pink;
width:auto;
display: table;
white-space: nowrap;}
.com {
background-color:yellow;
border: 3px solid black;
-moz-transform: rotate(90deg) translateY(-40px) ;
-o-transform: rotate(90deg) translateY(-40px) ;
-webkit-transform: rotate(90deg) translateY(-40px) ;
transform: rotate(90deg) translateY(-40px) ;
-moz-transform-origin: 0% 0% ;
-o-transform-origin: 0% 0% ;
-webkit-transform-origin: 0% 0% ;
transform-origin: 0% 0% ;
display: table;
white-space: nowrap;
}
</style>
<title>css</title>
</head>
<body >
<div>
<div style="float:left; border: 1px solid black; ">
<div class=box>DIV-111111</div>
<div class=com>DIV-2222222222</div>
</div>
<div style="float:left; border: 1px solid black; ">
<div class=box>DIV-33</div>
<div class=com>DIV-44444444</div>
</div>
<div style="float:left; border: 1px solid black; ">
<div class=box>DIV-55555555555555555</div>
<div class=com>DIV-6666666666666666666666</div>
</div>
</div>
</body>
</html> |
http://img838.imageshack.us/img838/363/divm.jpg
Merci d'avance. :ccool: