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
<!doctype html> <html> <head> <style> .outer { position:relative; left:0px; top:0px; width: 200px; height:100px; border:none; background:#00ff00; } .inner { position:absolute; left:0px; top:0px; width:50px; height:50px; background:#ff0000; } </style> </head> <body> <div class=outer><div class=inner></div></div> </body> </html>