kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.54k stars 5.89k forks source link

img in slick-slide block #3662

Open shooby83 opened 5 years ago

shooby83 commented 5 years ago

Why are all img tags inside a .slick-slide declared as block-elements? I guess it should only be set on direct child images.

====================================================================

What is the expected behaviour?

CSS rule should only influence specific image, not all images inside slick slide

AleCaste commented 5 years ago

This CSS rule should be removed:

.slick-slide img { display: block; }

I understand they added that for the lazy-loading but is not really needed and in fact it affects all images that are put inside any slide.