You can, though your syntax is off:
Code:
@media only screen and (max-width: 1225px)
{
body {width:980px;margin:0 auto}
}
@media screen and (min-width: 1226px)
{
body {width:1226px;margin:0 auto}
}
I would do it slightly differently though:
Code:
body {width:1226px;margin:0 auto}
@media only screen and (max-width: 1225px)
{
body {width:980px}
}
@media only screen and (max-width: 980px)
{
body {width:800px}
}
I.e, set the body with in css for your largest view, then incrementally apply changes to the style(s) as the page gets smaller.
Dave