Reputation: 106
I don't have access to edit HTML, so what I'm left with is a sidebar which I want relatively positioned so I can absolutely position an element inside of it, but I also want a child's child to be absolutely positioned relative to the body, NOT the sidebar.
Visual example:
Sidebar (relative)
| child (absolutely positioned in sidebar)
| child (statically positioned)
| | | | child of child (absolutely positioned relative to the body)
/Sidebar
Upvotes: 2
Views: 43
Reputation: 71939
No, not with CSS. But you can:
left
and top
Upvotes: 2