Getting to grips with @mediaquery
by Peter Griffith
As a designer, there are a few skills I’m required to have. Coming up with new and exciting ideas, bringing those ideas to life and generally making things look pretty. However, never in my career have I had to showcase psychic powers and predict the future to be able to do my job, that is, until I started working with @mediaquery.
What is @mediaquery?
@mediaquery is a relatively new feature of CSS which can be used to dictate how a website or email renders on particular sized screen such as a mobile device or desktop computer. I won’t bog you down with the details, but basically the way @mediaquery works is that the code is hidden in the email and only comes to life when it detects that your screen is below a certain size. As soon as it detects that you’re using a device with a smaller screen, it switches on the hidden code which manipulates and overrides elements of the email, changing its look and structure to suit the smaller screen.
Do you like music? Okay, stupid question: I might as well ask if you like converting oxygen into carbon dioxide, or Christmas Dinner. Everyone loves a good tune – with the possible exception of Andrew Lloyd Webber – and there’s nothing better than getting it for nothing. Remember how the holy grail of free music lured an entire generation into the open paws of that creepy Napster cat? Until the Recording Industry Association tied the bugger up in a burlap sack and chucked it in the Mississippi, of course.
I have a guilty secret. I am now, and have been for the last 5 years, a fully paid up member of the Pet Shop Boys fan club. I am, as my 2006 fanclub t-shirt states, a Pethead. And this book is one of my most treasured possessions.

