<!DOCTYPE HTML> <html> <head> <style> #d1 { overflow:hidden; height:0; } #d2 { opacity:0.50196078431; } #image { position:fixed; left:0; top:0; width:100%; height:100%; background:blue; } </style> </head> <body> <div id="d1"> <div id="d2" class="active"> <div id="image"></div> <h2>ABCDEFG</h2> </div> </div> </body> </html>