<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>