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...
-
Hi All I couldn't debug my C# class library project due to this issue for last few month. So this is the fix. 1. Right mouse click on...
-
I'm using following code part to access a ReST API. I'm communicating with this API using a X509 client certificate. In d...
No comments:
Post a Comment