LoginSignup
0
1

More than 3 years have passed since last update.

cssでレスポンシブ メディアクエリ

Posted at

レスポンシブとは

「レスポンシブWebデザイン」とは、PC、タブレット、スマートフォンなど、異なる画面サイズの幅を基準にWebサイト表示を柔軟に調整し、見やすく最適な表示にすることを指します。

引用元

メディアクエリを使う


@media (min-width: 800px) {

}

@mediaの後ろの()に条件を入れることで指定した画面サイズの時にデザインが変わるようにできる。

上の例では画面サイズが800px以上になったときの処理がかけるようになっている。

0
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
0
1