So here is the story. I just wanted to create an image tag which has the same size of source image size. My problem was whenever the image source size larger than image tag html element image is fitting to borders.
I found the solution after few hours of googling and changing very few CSS lines.
All you have to do is add a style to your img tag like this.
style = "width: auto;height: auto;"
I'll upload the jsfiddle ASAP.
Happy coding fellows....
Windows 7, Linux, Mac, JavaScript, jQuery, ExtJs, Angular, .NET, Java, Android, iOS, php, mysql, lucene and more...
Subscribe to:
Post Comments (Atom)
-
Recently I purchased nord-vpn for testing. But I could not use their service due to a technical reason. So I wanted to cancel and get my mo...
-
I'm using following code part to access a ReST API. I'm communicating with this API using a X509 client certificate. In d...
-
I have done few data recovery jobs for normal personal computer users who couldn't start their computers because of several reasons. Ev...
No comments:
Post a Comment