media-queries

How to use @media correctly in css

旧时模样 提交于 2020-12-16 06:47:29
问题 How to use @media in css for certain resolution? So I want to make my sidebar changes depend on the user resolution, so I use @media. This is the example code: @media (max-width: 1920px) and (min-width: 1080px){ /*for 1920 x 1080*/ .logo1{ margin-top: 70%; } .socmed a:nth-child(1), .socmed a:nth-child(2){ margin-top: 100%; } } @media (max-width: 1680px) and (min-width: 1050px){ /*for 1680 x 1050*/ .logo1{ margin-top: 70%; } .socmed a:nth-child(1), .socmed a:nth-child(2){ margin-top: 90%; } }

How to use @media correctly in css

本小妞迷上赌 提交于 2020-12-16 06:47:26
问题 How to use @media in css for certain resolution? So I want to make my sidebar changes depend on the user resolution, so I use @media. This is the example code: @media (max-width: 1920px) and (min-width: 1080px){ /*for 1920 x 1080*/ .logo1{ margin-top: 70%; } .socmed a:nth-child(1), .socmed a:nth-child(2){ margin-top: 100%; } } @media (max-width: 1680px) and (min-width: 1050px){ /*for 1680 x 1050*/ .logo1{ margin-top: 70%; } .socmed a:nth-child(1), .socmed a:nth-child(2){ margin-top: 90%; } }

How to use @media correctly in css

大兔子大兔子 提交于 2020-12-16 06:46:51
问题 How to use @media in css for certain resolution? So I want to make my sidebar changes depend on the user resolution, so I use @media. This is the example code: @media (max-width: 1920px) and (min-width: 1080px){ /*for 1920 x 1080*/ .logo1{ margin-top: 70%; } .socmed a:nth-child(1), .socmed a:nth-child(2){ margin-top: 100%; } } @media (max-width: 1680px) and (min-width: 1050px){ /*for 1680 x 1050*/ .logo1{ margin-top: 70%; } .socmed a:nth-child(1), .socmed a:nth-child(2){ margin-top: 90%; } }