LoginSignup
2
1

More than 3 years have passed since last update.

メディアクエリ max-width min-widthややこしい

Last updated at Posted at 2020-09-17

スクリーンサイズが1000px以下の場合に適用

@media screen and (max-width: 1000px)

スクリーンサイズが768px以上の場合に適用

@media screen and (min-width: 768px)

モバイルファースト

最近はモバイルファーストが主流のため、クリーンサイズが拡大していくごとにスタイルを上書きする書き方、つまりmin-widthで記述していくのが主流

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1