Solved

Media queries for BlackBerry devices - CSS

Posted on 2014-03-16
3
1,337 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

Industry Leaders: 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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

623 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