css id not applied to inside elements

!Unreal

New Member
My css code:\[code\]#header{width:900px;border:dashed 1px;margin:5px;padding:2px;}#header .fl_left{float:left;display:block;width:260px;}#header .fl_left h1{float:left;background-color:#666633;color:#0033CC;font-family:Verdana, Arial, Helvetica, sans-serif;font-style:oblique;}\[/code\]My html code:\[code\]<body><div id="header"><div class="fl_left"> <h1>hello all</h1> </div></div></body></html>\[/code\]I get the output 'hello all' outside header. My intention is to put h1 element text inside header. Why the header id rule is not applied to my h1 element.
 
Back
Top