I have a problem with "{float: absolute}"


Each time i try the css “{float: absolute}”, everything will just scatter! is there any other css am to specify for these property to work?


If you setting a boundary for the element with the style “{position: absolute}”, the the parent should have a position:relative . Absolute position makes the element overlay each other and falls to 0,0 (x,y) coordinates. So try something like

< div style= “position:relative” >
< div style= “position:absolute” >

< /div >

< /div >


i’ll try that, and get back 2 u. thanks bro


Perfect!!! now i learn one more thing. thanks


Samson i think you also need to know that the reason ‘{float: absolute}’ according to you "scatter"s your page is cos that is an invalid css rule… the ‘float’ property only has 4 properties - ‘left’, ‘right’, ‘none’ and ‘inherit’. http://www.w3schools.com/css/pr_class_float.asp


oh! insightful. thanks