Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Is it possible to build responsive websites without using media query?
As far as I know, all frameworks use them. The question arises in the choice of tool, but I definitely recommend using frameworks, and not writing your own bike.
Then you just have to choose a convenient tool based on
- size
- number of components
- source code
- basic unit
for example Foundation uses sass and em, and Bootstrap sass || less px.
For example, in order to increase the maximum width of the layout in Foundation, it is enough to increase the size of the base font, while in Bootstrap you need a
lot of @screen-lg frameworks in the sources, you just need to choose the one that suits you.
Have a look at Solved by Flexbox . Grid and adaptive approach is not a lot of code, even with the classic approach. HTML is mobile-first and responsive in nature, and as you get more complex, add the rules you need.
Frameworks for a small site are overkill. Ready-made frameworks for a large site - forcing framework standards and lack of proper flexibility. Poke around the frameworks, see how they are not implemented, learn the technique. And then always do for a specific project. With SASS, laying out a grid and an adaptive layout at the level of containers and modules takes a few minutes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question