selector { width:expression(document.body.clientWidth > 800? "800px": "auto" ); }
Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/lqIZ1dhtKYQ/13437