<!DOCTYPE HTML> <html> <head> <style> #d { width:200px; border:10px solid rgba(200,200,200,0.99); } #e { width:196px; height:196px; opacity:0.99; background-color:rgb(200,200,200); padding:2px; } #f { width:200px; height:10px; opacity:0.8; } </style> </head> <body> <div id="d"> <div id="e"> <div style="width:80px; height:80px; background:yellow;"></div> <div id="f"> <div style="width:80px; height:80px; background:blue;"></div> </div> </div> </div> </body> </html>