javascript - Images not being transformed to correct dimensions in image carousel -
when adding anchor tag around images in image carousel (using "caroufredsel" 6.2 jquery library), images not correctly transformed correct dimensions. when removing anchor tag, images transformed correct dimensions , work expected. css has been changed styling applied image applied anchor tag instead , problem still not resolved.
to demonstrate problem, have reproduced problem on jsfiddle along expected result in fiddle. actual javascript code used starts @ line 19.
it worth noting have changed snippet:
#carousel img { display: block; float: left; border: none; position: relative; }
to
#carousel { display: block; float: left; border: none; position: relative; }
to apply styling anchor tag instead of image, reflected in code on jsfiddle.
you problem in js applying css on instead of img. partially resolved, unfortunately dont have enough time right can start here add .children()
img intead of a
Comments
Post a Comment