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!

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

Get started for free