How to arrange HTML components in rows

Normally when you write a sketch and add HTML components such as divisions, paragraphs, buttons, sliders, ..., HTML just puts them at the end of the file, filling the page as if they were written as part of that page as demonstrated by the "no parent" and "Again no parent" buttons at the end of this page. Using some id, parent, and style options, we can do much better as shown above.

The light aqua "p5" division was setup and styled in the HTML file in order place it between the title and these comments. It would have been possible to manipulate its style with the p5js code, desired.

Some notes:

See also: HowToLayoutDiv.html.

Source code: HowTo/HowToArrangeRowsHTMLComponent.pjs

James Brink,     3/2/2020