Answer the question
In order to leave comments, you need to log in
Is it possible to create a website that is responsive in width and height?
Good day. During the development of the site, doubts arose. Is it possible to make an adaptive layout of the main page so that all blocks are visible on any monitor without scrolling horizontally and vertically.
Examples in the attachment:
1920x1080
1280x800
768x1024
Thank you.
Answer the question
In order to leave comments, you need to log in
Here is an example on flexbox: codepen.io/anon/pen/doRqYq
But this is more for general development
Easy) To adjust to screen height
function setHeiHeight() {
$('.min_height').css({
height: $(window).height() + 'px'
});
}
setHeiHeight(); // устанавливаем высоту окна при первой загрузке страницы
$(window).resize( setHeiHeight ); // обновляем при изменении размеров окна
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=1000">
Try like this codepen.io/Rodion77/pen/XbgPEE?editors=110
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question