'Can Preload Imports Be Used Outside of Preload Script

I am making an Electron timer app and want to know if it is possible for imports in the preload file to be used outside the file. For instance, if you use imports in preload.js but want to use those same imports in renderer.js, would it be possible?



Solution 1:[1]

Should be align items not content.

.colum {
    display: flex;
    align-items: center; 
}

Solution 2:[2]

Try with this:

.colum {
    display: flex;
    justify-content: center;
}
.item { 
    width: 300px;
    height: 300px;
    background-color: white;
    box-shadow: 0 0 4px #ccc;
    text-align: center;
}
<div id="flexn">
    <div class="colum cl1">
        <div class="item a1">rr 
        </div>
        <div class="item a2">rr
        </div>
        <div class="item a3">rr
        </div>
    </div>
    <div class="colum cl2">
        <div class="item b1">rr
        </div>
        <div class="item b2">rr
        </div>
        <div class="item b3">rr
        </div>
    </div>
</div>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Zrelli Majdi
Solution 2 Urvisha