Déplacer un div dans un autre : quelle propriété ?
Bonjour,
Je voudrais déplacer mon div "scrollup" dans mon div "live_informations" mais je n'y arrive pas...
Voici mon code :
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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title>ScrollUp</title>
<meta http-equiv="content-language" content="fr"/>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15"/>
<meta http-equiv="content-style-type" content="text/css"/>
<style type="text/css">
body
{
font-family : Verdana;
font-size : 10px;
}
#live_informations
{
background-color : #FFCE73;
border : 1px solid #000000;
height : 25px;
/*overflow : hidden;*/
width : 400px;
}
#scrollup
{
background-color : #CCC;
position : relative;
}
</style>
<script type="text/javascript">
function scrollup()
{
setTimeout("scrollup()", 500);
}
</script>
</head>
<body onload="javascript:scrollup();">
<div id="live_informations">
<div id="scroolup">
15/08 18:50 : XXXX<br/>
15/08 14:30 : YYYY<br/>
15/08 12:12 : ZZZZ<br/>
15/08 10:18 : AAAA<br/>
15/08 06:45 : BBBB<br/>
15/08 04:32 : CCCC<br/>
14/08 23:47 : DDDD<br/>
14/08 10:19 : EEEE
</div>
</div>
</body>
</html> |
J'ai essayé avec "top" et "margin-top" mais sans succès...
Savez-vous pourquoi ça ne fonctionne pas ?
Merci,
Mathieu