Solved

Mobile web - making something not show up on a device

Posted on 2013-11-18
4
183 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 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

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.
Read about why website design really matters in today's demanding market.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

707 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