questo è il codice...
codice:html { height: 100%; } body { padding:0px; margin:0px; height:100%; } #box1 { position:relative; width:100%; min-height:100%; height:auto!important; height:100%; background:#CCCCCC; } #box2 { height:auto!important; height:50%; background:red; min-height:50%; }perchè con mozzilla il box2 non occupa il 50% dello spazio dentro il box1? come posso fare?codice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <style type="text/css"> @import url("prova.css"); </style> </head> <body> <div id="box1"> <div id="box2">testo prova </div> </div> </body> </html>
inoltre mi spiegate cosa vuol dire !important che penso di non averlo capito?
grazie mille

Rispondi quotando