+ 3

Fit code/website on all screens (devices)

Anybody know about @media (CSS) - it's to fit your website on all different kind of screens. For example, let's say I'm trying to make the .content width decrease every time the body width decreases., Like this - (max width (300px) = .content width = 300px; (max width 299px) = .content width = 299px (max width 298px) - = .content width = 298px)... So my point is instead of typing every number, could I use JavaScript to make the .content width decrease evytime the body decreases? Something like i - - or (i ++). Let me know if it doesn't make sense

19th May 2019, 6:27 PM
Ginfio
Ginfio - avatar
1 ответ
+ 5
19th May 2019, 6:38 PM
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘 - avatar