… and the htmlHandler.initialize, where they (just) gets defined by ‘add’ {here there is no logic to how/why .containerRight is placed within .container???}
HtmlHandler.prototype.initialize = function() {
// create DIV element
this.element = document.createElement(‘div’);
this.element.classList.add(‘container’);
// append to body
// can be appended somewhere else
// it is recommended to have some container element
// to prevent iOS problems of overfloating elements off the screen
document.body.appendChild(this.element);
this.element2 = document.createElement('div');
this.element2.classList.add('containerRight');
// append to body
// can be appended somewhere else
// it is recommended to have some container element
// to prevent iOS problems of overfloating elements off the screen
document.body.appendChild(this.element2);
Hmmm … (for future readers as well) Yes ok, well - I am not sure my own local DOM structure/CSS-issues will be useful for others to read (?)
I will close this as ‘solved’ as I did find another solution, and got the .containerRight to be in the right side.
A little prayer to admins: try and make a more full demo-toturial [htmlcss—live-updates] with all CSS-positions … including a better overview on what (exactly) is going on between the html-asset and the htmlHandler.js-file in the https://developer.playcanvas.com/en/tutorials/htmlcss---live-updates/
{right now it seems to be targeting both js- and css-developers … and while both groups can be quite experienced, the workings of mixing the two tech’s is a bit too reliant on intuitive approaches}
// on before hand thanks