media declaration for mobile css

I am using the @media CSS declarations recommended by CM in the head of my document and all other styles are inline. Should the media type for the surrounding style tag be media="screen", media="handheld" or neither?

roshodgekiss roshodgekiss, 6 years ago

Hi simplelives, just <style type="text/css"> should do. Take a look at this example, which includes the following code:

<style type="text/css">
    a:hover { ... }
    @media only screen and (max-device-width: 480px) {
        .page { padding: 0px 10px 5px 10px !important; }

Get in touch with us on Twitter:
We're also on Facebook:
simplelives, 6 years ago

Excellent. Thanks!

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free