I've figured out how to get the width and hight of an image using javascript. My question is how do I apply the width and height to it's nearest parent in this case it's li using javascript.I've figured out how to get the width and hight
I've figured out how to get the width and hight of an image using javascript. My question is how do I apply the width and height to it's nearest parent in this case it's li using javascript.I've figured out how to get the width and hight