css - Do we need to use javascript to create a responsive layout? -


i made download of several free responsive layout (you can find them through google if you're curious) , see layout has @ least 1 or 2 javascript files.

the question is: javascript essential create responsive layout?

then, in reply question "no" , have possibility link free responsive layout made html , css, well, receive wonderfull big thank you.

the whole point of responsive layouts can (and should) done css3 media queries only.

however, can require clever html design, if want have slide-in menu (hint: :active can powerful when combined tabindex make otherwise "inert" element respond click events link) , many developers can't bothered that, when jquery readily available.

so basically, yes, can make responsive layout css only. , if succeed, congratulations! javascript can used make things easier, in general if think need it, need rethink how you're doing things.

unfortunately, have no links javascript-less responsive layouts you, that's because i'm dim - doin' meself!


edit back while appreciate martijn's demonstration of use of javascript in making images have variable resolution depending on screen size, images can made responsive using svg if possible. if not option, consider using container background-image - image matches media query loaded :)


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -