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
Solved

Mobile web - making something not show up on a device

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 do I make this page mobile friendly? 18 140
web services wcf 2 121
Basic responsive layout problems 19 74
Cross platform mobile development? 9 54
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

765 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