It would be good to keep this in css instead of javascript.