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


#1

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?


#2

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 >


#3

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


#4

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


#5

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


#6

oh! insightful. thanks