media query for mobile and tablet

/* Smartphones (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
  /* Styles */
}

/* Smartphones (landscape) ----------- */
@media only screen 
and (min-width : 321px) {
  /* Styles */
}

/* Smartphones (portrait) ----------- */
@media only screen 
and (max-width : 320px) {
  /* Styles */
}

/* iPads (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) {
  /* Styles */
}

/* iPads (landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
  /* Styles */
}

/* iPads (portrait) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) {
  /* Styles */
}

/* Desktops and laptops ----------- */
@media only screen 
and (min-width : 1224px) {
  /* Styles */
}

/* Large screens ----------- */
@media only screen 
and (min-width : 1824px) {
  /* Styles */
}

/* iPhone 4 - 5s ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
  /* Styles */
}

/* iPhone 6 ----------- */
@media
only screen and (max-device-width: 667px) 
only screen and (-webkit-device-pixel-ratio: 2) {
  /* Styles */
}

/* iPhone 6+ ----------- */
@media
only screen and (min-device-width : 414px) 
only screen and (-webkit-device-pixel-ratio: 3) {
  /*** You've spent way too much on a phone ***/
}

/* Samsung Galaxy S7 Edge ----------- */
@media only screen
and (-webkit-min-device-pixel-ratio: 3),
and (min-resolution: 192dpi)and (max-width:640px) {
 /* Styles */
}

tablet media query

@media (min-width:320px)  { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ }
@media (min-width:480px)  { /* smartphones, Android phones, landscape iPhone */ }
@media (min-width:600px)  { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ }
@media (min-width:801px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }

Media Query Tablet and Below

/* Tablet And Below */
@media all and (max-width: 980px) {}

CSS相关代码片段

Console.log in PHP

tailwindcss full config file with custom name

HTML css div height min

css shadow around text on every side

tailwind transform: translateY(-50%);

tailwind right 50

css target partial class name

creating a linux terminal in html and css

rest_framework/api.html

css fit-content, max from bottom

scss random color

css do not wrap text

scss keyframes

tailwind css class sorting

Centrar un bloque de forma vertical y horizontal

Centrar un bloque de forma horizontal

Centrar vertical y horizontalmente un bloque

centrar contenedor

Media query for viewport width greater than 1200px

create a header that doesn't move css

modern scrollbar css

Control Specificity Better with :is()

list class

Create and save csv to storage in Laravel

padding top vertical scroll

how to design a login page in css

Styling React Apps with Vanilla CSS

how to make text italics in css

tailwind max-width

tailwind initial letter

responsive font size in css

style dsiabled button css

dark mode background color code

Tailwind CSS with NextJS

style css en html

angular add material icon css

use nerdfonts with css

CSS Relative colors

change language dropdown

css upercae

line break css

css overwrite

css clikable div style

minimum mobile screen size in px

css reverse order

celery beat run command

Gradient Background Animation rotate

disable floating panel rendering in vue

run celery command

learn css grid

tilwind css dark mode

why css wp-admin not working

How to make my own text typing animation

flex-shrink: 0

NextJs Image has legacy prop "objectFit"

glass background effect css

overide css of angular material daterangepicker

can you assign 2 css classe to 1 elemenet

install pg admin on uabntu 22.04

A Modern CSS Reset

vertically arrange inputs in css

skill bar in css

html table caption top

input file color for choose file

css print media 2 columns

put item in center css

put item left side css

Input with number type style

flex-grow Property

flex-direction Property

flex Property

justify-content Property

Css flex-wrap property

CSS display: inline-flex property

The CSS flex-flow property

Css flex-basis property

flex-shrink Property

css disable zoom on input

convert css to tailwind classes

responsive text tailwindcss