Being online or offline has nothing to do with how much you run your wallet.
A wallet is offline if your keys are generated and kept offline. Even if your hardware wallet is always connected to your computer and it's always running, your wallet is still offline. In the case you use electrum to generate a wallet on an online device, it can't be considered as a cold wallet even if you delete your wallet immediately and never use it again.
Well that's also true, as I also tried a offline key generator but from what I meant to say is, a wallet which is offline it means it is not connected to internet and opposite in online but I think I was at wrong and your statements makes more sense then I am agreed with you and thanks for the correction.