Solved

Media queries for BlackBerry devices - CSS

Posted on 2014-03-16
3
1,299 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS style formatting? 2 61
CSS for <center> 14 49
boostsrap 1 35
Presenting my portfolio on the web? 11 53
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
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 …

739 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