Solved

Media queries for BlackBerry devices - CSS

Posted on 2014-03-16
3
1,237 Views
Last Modified: 2014-04-12
I am having trouble locating the correct media queries to use for BlackBerry devices.

Specifically I am coding a responsive email to be rendered on the following devices:-

BlackBerry Z30
BlackBerry Z10
BlackBerry Q10
BlackBerry Q5
BlackBerry 99xx

I have tried using the following media query in the style declaration used in the head of the email template but the
display: none !important;

Open in new window

is not being respected in any case.

@media screen and (max-width: 720px) and (max-height: 720px) (-webkit-min-device-pixel-ratio: 1.5)

Open in new window


From what I have read, it may be necessary to implement separate media queries for each different device based on the screen size and resolution - however if possible I would like to manage with a single query.

I have immediate access to all devices to test queries...

... what @media query should i be using?
0
Comment
Question by:Team1_Coder
3 Comments
 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 500 total points
ID: 39932643
i dont know about those specific bb devices, but, most email clients dont understand media queries at all. also, putting styles in the head of your dicument is also very poorly supported in email clients. in general, html email is very limited. to this day, tables and inline styles have to be used for email layout.

you should first find out what css is even suppprted in the email clients you are targeting. second, if the viewport sizes arent drastically different, use percentage widths instead of trying to get perfect pixel sizes with media queries. this is a much more scalable approach
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question