GoldSpec Digital4,185 Points
In this video when Guil sets the position of the fig-caption to absolute, it moves outside of the box and takes up full width - why is this?
i don't understand as no top, right, left, bottom values were set, we just set the position to absolute and that was it?
Steven Parker203,728 Points
Initially, changing the position to absolute doesn't move where the element is placed, it just no longer participates in the "flow" of the document. It no longer pushes the next element down, and it's width is no longer constrained by the parent element so it expands to hold its own contents.
This is modified in the next step by establishing the parent as the relative positioning context.