1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<html> <head> <style> #div1 { background: green; height: 100px; width: 100px; } span { background: yellow; } </style> </head> <body> <div id="div1"> <span style="position: relative; top: 150px; left: 20px">span 1</span> </div> <span>span 2</span> </body> </html>