At first I would like to thank you for all the work you have done.
It's been a few days now that I'm trying to use MetroUi and I'm really happy with it.
However, I noticed that CSS style not applying on dynamic injected html elements with javascrip
[codepen]<body onload="init()" class="bg-dark fg-white h-vh-100 m4-cloak">
<div class="container-fluid start-screen h-100">
<h1 class="start-screen-title">Home Sweet Myrrha</h1>
<div id="arrayTile" class="tiles-area clear">
and myFunction :
var stringHtmlTile = decodeEntities("<%=dataTile%>");
document.getElementById('arrayTile').innerHTML = stringHtmlTile;
The code that HTML I retrieve comes my variable: stringHtmlTile
does not show me the correct CSS style.
While if I copy the contents of the variable into hard between tags
[codepen]<div id = "arrayTile" class = "tiles-area clear">
The layout is nickel ...
Can you help me ?
General issues related to the use of Metro 4
2 posts • Page 1 of 1
- Site Admin
- Posts: 233
- Joined: Mon Apr 09, 2018 6:19 pm
- Location: Kiev, Ukraine
- Status: Offline
Please create your example on codepen.io or sandbox.org.ua