jquery - How can I have a fixed height image with Slick Carousel that doesn't distort with the user resizes the browser? -


how can specify fixed height images doesn't distort user resizes browser?

i want act background image, rotate slick carousel.

any ideas?

set absolute height container of images in carousel, carousel in case.

set css inside style="" tag of carousel specify

<div class="carousel" style="height:300px;"> .. </div> 

when specifying fixed height container, won't distort if browser resized. or if carousel has borders around , don't want overflow, should try following method -

<style> .carouselcontainer {      overflow:hidden; } .carouselcontainer img {      height:300px; } </style>  <div class="carouselcontainer">      <img src="link1">      <img src="link2">      ... </div> 

i can't show actual example haven't provided code. hope convey concept of how it.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -