Answer the question
In order to leave comments, you need to log in
How to make a cross-browser responsive website?
I want to make a responsive design without using Bootstrap. That is, the first block should stretch to full screen, the second block should start where the first one ends. CSS3 has vh height units for this. But I couldn't even find a list of browsers that support it. And for the rest you need a fix. I thought: let the site not be adaptive in old browsers. Pasted the script
<script type="text/javascript">
var header = $(".header").css("height", "100vh");
if (header.height() == 0) percentage.addClass("fail");
</script>
Answer the question
In order to leave comments, you need to log in
Lord, where is this from??? It is enough to do:
html, body { width: 100%; height: 100%; }
.ekran1 { width: 100%; height: 100%; }
.ekran2 { width: 100%; height: 100%; }
Browsers that support vh: caniuse.com/#search=vh
How to find out if a browser is one of those supporting CSS3: https://modernizr.com/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question