4 ms·
Html is tree structures right? Every element is default positioned relative to the previous element.
by hayksaakian 11y ago
Html is tree structures right? Every element is default positioned relative to the previous element.
- kayamon 11y agoUh, yes, I guess? That by itself is not especially useful. That's not what a layout language is for. A layout language needs to be able to specify "A goes 10 px to the left of B".
- est 11y agoUnless if you think about it, layout is positioned in a 2D plane (with z-index, it's a 3D space, don't mention time), not a tree structure at all.
- applecore 11y agoExcept a tree structure is the only conceptual model that works for composing a user interface (out of simple, largely stateless components). See, for example, React and JSX.
- wavefunction 11y agodefault is "statically," if I may be so <strong>