A figure from deeply nested elements with relative positioning