Solved

Media queries for BlackBerry devices - CSS

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to calculate height of a text using jquery 3 42
Date on a table 16 33
Jquery HTML() with ajax... replacing content 2 27
Hit counters in SharePoint 2013 2 22
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Find out what you should include to make the best professional email signature for your organization.
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…

761 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