Solved

Mobile web - making something not show up on a device

Posted on 2013-11-18
4
178 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
  • 2
  • 2
4 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
android alarm app 13 104
Responsive Modal popup 6 75
internet traffic 2 54
push text up below h2 tag 1 8
Recently, we decided that in order to stay competitive in today's IT world, we were going to have to develop and deploy a mobile app for our users and do it quickly. We felt that we were already behind the curve. Users of technology today are mov…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now