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!

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free