Ciao a tutti, vorrei porvi il mio banale problema, ho questa situazione:
Perchè il blocco 3 risulta essere fuori dal contenitore ?codice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>D. I. V. </title> <style> .contenitore { width: 100%; border: thin solid #000; background-color: #ffff00; } .blocco1 { width: 200px; border: thin solid #000; height:200px; background-color: #ff0000; } .blocco2 { width: 200px; border: thin solid #000; height:200px; background-color: #00ff00; } .blocco3 { position:relative; float: right; width: 200px; border: thin solid #000; height: 200px; background-color: #0000ff; } </style> </head> <body> <div class="contenitore"> <div class="blocco1">BLOCCO 1</div> <div class="blocco2">BLOCCO 2</div> <div class="blocco3">BLOCCO 3</div> </div> </body> </html>
Ovvero perchè al contenitore non si allunga l'altezza ?
Grazie.

Rispondi quotando