Comments on: Media Queries for Standard Devices https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Sun, 07 Jul 2024 07:10:07 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: William Cotton https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1836280 Sun, 07 Jul 2024 07:10:07 +0000 http://css-tricks.com/#comment-1836280 Hello, how do I my text to adjust for different devices? If I do
it looks good on my laptop but not my phone.
Is there a way to have it adjust according to the size of the device being used?
Thank you

]]>
By: Adam https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1802677 Tue, 17 Jan 2023 23:21:30 +0000 http://css-tricks.com/#comment-1802677 In reply to Adam S Khan.

Oops, I mean any-pointer

]]>
By: Adam S Khan https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1802676 Tue, 17 Jan 2023 23:20:34 +0000 http://css-tricks.com/#comment-1802676 For tablets also see pointer: coarse.

This discussion was helpful: https://bugs.webkit.org/show_bug.cgi?id=209292

]]>
By: Rahul Sahota https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1797389 Wed, 12 Oct 2022 12:37:40 +0000 http://css-tricks.com/#comment-1797389 Hello Everyone,

can you please suggest me,
How can i check the mac view on desktop window 10

]]>
By: Suliman Danish https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1797081 Wed, 14 Sep 2022 10:24:47 +0000 http://css-tricks.com/#comment-1797081 I have a question I want to show the table contents on a mobile preview as a single table because i have made the table to repeat as much as there is data on the backend but when i open the mobile preview or even on mobile it shows the data the same as it was in the desktop view.how to differentiate this on the base of device.Thanks

]]>
By: Glenn https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1796045 Sun, 12 Jun 2022 18:24:09 +0000 http://css-tricks.com/#comment-1796045 In reply to Nate.

Unfortunately, chrome web inspector tools are not entirely reliable for evaluating iPhone media queries for Safari.

]]>
By: alex https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1795467 Mon, 18 Apr 2022 15:34:21 +0000 http://css-tricks.com/#comment-1795467 Is there a way to set up media queries based on device type i.e tablet but not based on pixels, just that it recognizes that it is a tablet and will show the small screen design?

my example would be an iPad that has a 1200px screen I don’t want it to show the desktop design, but at the same time desktop screens at 1200px should still work with the desktop look.

]]>
By: Jaco https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1794814 Wed, 02 Mar 2022 14:16:45 +0000 http://css-tricks.com/#comment-1794814 In reply to Jim.

This might be way too late. But for anyone that might find this helpful…
If you encounter this issue, what I found works best is if you put your @media (min-width: …) before your @media (max-width: …) it does not override it.

]]>
By: Sam Lalani https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1788751 Wed, 26 Jan 2022 23:12:05 +0000 http://css-tricks.com/#comment-1788751 Is there any way to tell the physical size of the device in inches (or cm)? For example, a resolution of 2532×1170 could exist for a smartphone that is 5″ by 2.5″, or for a mini tablet that is 7″ by 3.5″, which could also be the dimensions of a large smartphone. Or a tablet that is 10″ by 5″. Knowing the physical size of the device would be helpful to determine the size of images to display. For a smartphone, you may want to use half the screen for the image, but for a tablet you may want to use a fourth of the screen.

]]>
By: D7460N https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1788708 Wed, 26 Jan 2022 14:41:25 +0000 http://css-tricks.com/#comment-1788708 Thank you for this article and all the comments. Very informative.

I have two questions.

Are rem units for font-size recommended with media queries? Or are other unit types better (like px) with media queries?
What are the “gotchas” (if any) for offloading media queries to their own external style sheet from an already lengthy style sheet?

Thanks again!

]]>
By: Marina https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1784566 Thu, 28 Oct 2021 19:25:15 +0000 http://css-tricks.com/#comment-1784566 In reply to Vishal Verma.

I ran into the same issue.

]]>
By: Marina https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1784565 Thu, 28 Oct 2021 19:23:41 +0000 http://css-tricks.com/#comment-1784565 In reply to Harry.

Check the browsers they are using – you’re most likely testing in Chrome.

]]>
By: Harry https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1782441 Wed, 15 Sep 2021 05:44:31 +0000 http://css-tricks.com/#comment-1782441 We have recently launched a new website that uses responsive design.
However we are hearing from some users that the site is not responsive on some mobile devices: HTC’s, Window’s phones, etc.

When I test in an emulator the devices highlighted the site looks fine, but still for some devices it seems not to work.

Any ideas?
https://www.servertrafficweb.com/offshore-dedicated-server.html

]]>
By: a clearing in a forest https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1776489 Fri, 16 Jul 2021 15:27:56 +0000 http://css-tricks.com/#comment-1776489 Can you collapse the comments so scrolling isn’t “a smidge = shooting past the phone I was trying to see”? I noticed you’ve updated the layout which helps tremendously but it would be awesome to use my wacom pen to scroll without crying.

]]>
By: Geoff Graham https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#comment-1776155 Mon, 12 Jul 2021 14:51:41 +0000 http://css-tricks.com/#comment-1776155 In reply to thuanphuocdilink21.

Hey there! I’d suggest writing all of your styles as though they are mobile styles. Then, as you need additional styling for larger screens, use a media query to target those styles.

Here’s an overgeneralized example:

body {
  background: #f8a100;
  font-size: 16px;
}

@media (min-width: 700px) {
  body {
    font-size: 18px;
  }
}

@media (min-width: 1000px) {
  body {
    font-size: 20px;
  }
}
]]>