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, 5 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; }
        ...
    }
</style>

Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
simplelives, 5 years ago

Excellent. Thanks!

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098