Responsive web design | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Responsive web design

is it possible if we make responsive web design with 3 different css (960px, 480px, 320px) and 1 html?

30th May 2017, 4:00 AM
Dee N.S
Dee N.S - avatar
5 Answers
+ 6
yes, of course. that's the point in responsive webdesign. take a look at bootstrap, it saves you a lot of time.
30th May 2017, 5:19 AM
Mario L.
Mario L. - avatar
+ 6
Or use css import rule: @import url('/css/320px.css') screen and (min-width: 320px); @import url('/css/480px.css') screen and (min-width: 480px); ...
30th May 2017, 5:38 AM
Matúš Semančík
Matúš Semančík - avatar
+ 5
<link rel="stylesheet" media="screen and (min-device-width: 320px)" href="s320.css" /> <link rel="stylesheet" media="screen and (min-device-width: 480px)" href="s480.css" /> <link rel="stylesheet" media="screen and (min-device-width: 960px)" href="s960.css" />
30th May 2017, 5:33 AM
Calviղ
Calviղ - avatar
+ 4
Try: @media screen and (min-width: 320px) { /* css for 320px+; */ } @media screen and (min-width: 480px) { /* css for 480px+; */ } @media screen and (min-width: 960px) { /* css for 960px+; */ }
30th May 2017, 5:20 AM
Matúš Semančík
Matúš Semančík - avatar
+ 1
Thank you, it help me alot
30th May 2017, 5:50 AM
Dee N.S
Dee N.S - avatar