this test proves that you can change style of a page according the the page width. This is done by using css media queries. resize your window between 1000 and 500 pixels to see the effect.