yes, i need it to work with phones too.
media queries - if i understand the linked tutorials - involve several different css'es applied depending on various conditions, like f e screen resolution.
this would greatly complicate future reediting. If possible at all, i would like to stay with js.
it appears to work. thank you.