Inanzitutto devi usare delle misure e scrivere gli ID in minuscolo. poi pova così:
Esempio
codice:<!doctype html> <html> <head> <meta charset="utf-8"> <title>Documento senza titolo</title> <style type="text/css"> #contenitore { margin: 0px; padding: 0px; height: 600px; width: 600px; position: relative; background: #AAA2A2; } #gif { position: absolute; top: 50%; left: 50%; padding: 0px; height: 300px; width: 300px; margin: -150px 0 0 -150px; } #bg { position: absolute; top: 0; left: 0; padding: 0px; height: 60px; width: 150px; margin: 10px; } </style> </head> <body> <div id="contenitore"> <div id="gif"> <img src="01.jpg" width="300" height="300" alt=""/> <img id="bg" src="02.jpg" width="150" height="60" alt=""/> </div> </div> </body> </html>

Rispondi quotando