Why can't I see my background on div

davida

New Member
I have one container and I have float:left inside it's child div. Problem is as soon as I apply float:left on child div my parent div's background is completely lost.\[code\]<!DOCTYPE html><html> <head> </head> <body> <div style="background: #CCC; width:100%; position:relative;"> <div style="float:left;"> This is some text </div> </div> </body></html>\[/code\]Can anybody tell me how do I fix this?
 
Back
Top