Home › Forums › CSS › Relative bottom positioning won’t work › Re: Relative bottom positioning won’t work
September 25, 2010 at 1:05 pm
#79068
hebe
Member
I guess you used HTML in your comment and it was auto-removed, but I assume the missing content is p’s? Try clicking the “code” button if you need to insert code in your comments =)
Anyhooo… if I assumed right, this should fix your problem:
#boxes {
position: relative;
...
...
}
#blue p {
position: absolute;
bottom: 0;
margin-bottom: 0;
}
That is:
You have to set the parent as RELATIVE and the child as ABSOLUTE.
The child will then be absolute positioned relative to its parent.