Ich verstehe einfach nicht warum der Text wenn er z.b. in einem "h1" oder "p" Tag steht dann UNTER der definierten Box Steht :(
Im Gegansatz dazu ohne Tag dann wirklich auch in der Box !
mache ich etwas falsch oder woran liegt das ?
HTML:
<style type="text/css">
#testposition { width:400px; height:30px; position:absolute; top:0px;right:0px;background-color:#bdd;}
</style>
<body>
<div id="testposition">
<h1>Test</h1>
</div>
</body>
HTML:
<style type="text/css">
#testposition { width:400px; height:30px; position:absolute; top:0px;right:0px;background-color:#bdd;}
</style>
<body>
<div id="testposition">
Test
</div>
</body>