1
I’m creating a working time alert with scroll for tablets and mobile phones, based on the Spinning Wheel project, found in https://github.com/mcfedr/Spinning-Wheel/blob/master/index.html
The problem, is that in my project, the alert should appear in the middle of the screen, and in the original project, several elements are under various different CSS rules (Divs like #sw-wrapper ,#sw-slots , #sw-frame, etc). I can even put some Divs in the middle of the screen, but they are all misaligned. And even lose the functionality of the scroll. I’ve also tried to put all the elements inside a div, but it didn’t work.
Is there any concept of CSS that I haven’t assimilated? Is there a smart way to solve this?
Some modifications I made to the code to try this
In body CSS I put (to try to take all Divs)
alarm
{
position: fixed;
top: 50%;
}
in the Divs I tried to use a
{ position: absolute;
bottom: 50%;
}
In javascript, where to find:
div.innerHTML = '<div id="sw-header"><div id="sw-cancel">....</div>
I tried to force a DIV of mine with:
div.innerHTML = '<div id="alarme"><div id="sw-header"><div id="sw-cancel">....</div>
I tried that. But because each element of this application had a div, it was disfigured. I was able to take all the elements at once, but apparently javascript was using the CSS properties to form the scroll, and lost the functionality. In the end, I appealed to use IFRAME. Your tips were good. Soon I will also enrich this topic more.
– Paulo Sérgio Duff