3 ms·
In the full example at the end this is used twice actually.
by stanleydrew 16y ago
In the full example at the end this is used twice actually.
- krosaen 16y agoah, good point, "Our #callout element is set to position: absolute, and since its parent element, #content is set to relative, the offset properties we’re using on #callout are based off the coordinates created by #content." would be nice to see it called out as one of the core techniques above though. or I guess I could have just read the whole article before commenting :)
- jjcm 16y agoStill though, when they're explaining absolute positioning they make this statement: "You can set an element to top: 100px and left: 200px; and that element will sit exactly 100px from the top and 200px from the left of the document." Which seems misleading, despite the example they show later.