0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

レスポンシブデザイン

Posted at

デバイスのウィンドウ幅に「responsive(よく反応)」して、見やすい表示に自動で切り替える。

メディアクエリ

基本文法

@media (max-width: 430px) {
    main {
    margin-left
    
    }

}

できること:さまざまな(印刷、音声の制御とサイズによって表示を変える)

@media (条件) {
  /* 条件に合致した場合に適用されるスタイル */
}

条件の部分には、以下のものが指定できます。
画面サイズ: width, height
デバイス: screen, print
向き: orientation (landscape, portrait)
解像度: resolution
その他: min-width, max-width, min-height, max-heightなど

より詳しい情報を得るために

MDN Web Docs: https://developer.mozilla.org/ja/docs/Web/CSS/Media_Queries
W3Schools: https://www.w3schools.com/cssref/css3_pr_mediaquery.asp

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?