news: move css margin changes to javascript