javascript - How do I get my logo, slideshow and image to cover my entire screen no matter the window size -
i 3 of these divs (logo, slideshow, , subslider) fit entire screen window no matter size. want mimic background:cover action in css 3 of these elements. research need in javascript can't seem work no matter try. note using drupal if changes anything... despite reading lot on subject, i'm way out of comfort zone when comes trying understand window resizing issues, help, advice, , code snippets godsend please!
<div class="logo"> <img src="sites/all/themes/cpd pro/images/cpd.jpg" alt="center passion development"> </div> <!-- *************slideshow***************-- --> <div id="slider"> <img src="sites/all/themes/cpd pro/images/slide1.jpg"/> <img src="sites/all/themes/cpd pro/images/slide2.jpg"/> <img src="sites/all/themes/cpd pro/images/slide3.jpg"/> <img src="sites/all/themes/cpd pro/images/slide4.jpg"/> <img src="sites/all/themes/cpd pro/images/slide5.jpg"/> </div> <!-- *************below slideshow image***************-- --> <div class="subslider"> <h5><img src="sites/all/themes/cpd pro/images/nav-wrap.png" alt="navigation"> </h5> </div>
use vh unit in css. 100vh 100% of viewport's height, can make 3 divs heights sum 100vh.
Comments
Post a Comment