I'm creating a scrolling time alert for tablets and cell phones, based on the Spinning Wheel project, found at link
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 on several 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 they even lose scroll functionality. I've also tried putting all the elements inside a div, but it did not work.Is there any concept of CSS that I have not assimilated? Is there any clever way to work around this?
Some modifications I made to the code to try this
In the CSS of the body I placed (to try to take all the 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 mine with:
div.innerHTML = '<div id="alarme"><div id="sw-header"><div id="sw-cancel">....</div>