Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Understanding css media queries

Posted on 2013-12-13
3
Medium Priority
?
348 Views
Last Modified: 2013-12-13
The Samsung Galaxy S3 is 1280x720 .

On my site I have the following

<style>
            @media all and (min-width: 1024px){
     #desktophide  {display:none;}
}
      @media all and (min-width: 1024px){
      img {float:right;padding-left: 10px;}

}

@media screen and (max-device-width: 480px){
      #mobilehide {display:none;}
      
                    
}
</style>

I don't want to alter my css because it seems to fit most device perfectly. So if I wanted to target the S III (and I'm assuming they have market share so this is important)

The following wouldn't mess up the site that has rendered in a forgiving manner so far:

@media only screen
and (min-device-width : 720px)
and (max-device-width : 1280px) {
#desktophide {dispay:none;}
}
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
3 Comments
 

Author Comment

by:burnedfaceless
ID: 39717199
I'm asking because I don't want to walk back into Verizon again they'll recognize it. Best to make sure on here.
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 2000 total points
ID: 39718045
with any cross-device issue on mobile.  It is mostly a matter of trial and error.  Every manufacturer define media query support differently and virtually every manufacture defines resolution differently than the standard (one virtual inch = 96 pixels with the virtual inch defined a default display circuit density unique to the device).

So all you can do is experiment until you get it right.

The state of mobile compatibility is where desktop compatiblity was in 1998 and it took more than 5 years to get manufacturers to agree on standards and another 5 for general support of the standards. With mobile it is going to be even worse because there are more manufacturers.

Cd&
0
 

Author Closing Comment

by:burnedfaceless
ID: 39718135
They're bullshit.

Bootstrap was written by some incredible nerds but php is where it's at.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
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.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Suggested Courses

636 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