Hi the following is my code and i am using crome (browser)
<div style="width:700px;height:100px;background-color:silver"> <div id="week" style="margin:20px;border:2px solid red"> <div id="sfsf" style="margin:10px;"> Day Of The Week </div> </div> </div>
In the above code the div with id "week" is displaying very strange behavior. For this div i have applied margin of 20px. the margin should start from its parents div. But here the margin starts from the top of the document, I mean from the browser top. this is very strange.
there is a div inside the "week" div. For that also i have applied margin of 10px. This is working fine. I mean the margin starts from inside the "week" div.
Could you please help understanding this behavior? How to solve this?