?
Solved

Mobile web - making something not show up on a device

Posted on 2013-11-18
4
Medium Priority
?
186 Views
Last Modified: 2013-11-18
So assigning classes based on device - could you make something not show up at all on some devices.
0
Comment
Question by:burnedfaceless
[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
  • 2
  • 2
4 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 39657562
Not sure what you mean by So assigning classes based on device
If by devices you mean by type e.g. iphone, blackberry etc then no.
Media queries work based on device width - so if you want to hide something where the device width is 320px then you would use something like this.
@media all and (max-width:320px){
     #myelement-id  {display:none}
}

Open in new window

0
 

Author Comment

by:burnedfaceless
ID: 39657579
So the ID the hastag if you assigned that to paragraphs, pictures anything you could prevent it from showing on some devices?
0
 

Author Closing Comment

by:burnedfaceless
ID: 39657582
Thanks
0
 
LVL 58

Expert Comment

by:Gary
ID: 39657586
Yes
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

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
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 …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

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