Reputation: 2597
My image has a width of 1000px. If i'm using style="width:800px" it works great but if I use Style="width:1500px". it doesn't stretch my image and leaves it at 1000px.
how do I make my picture stretch?
Upvotes: 1
Views: 3293
Reputation: 73554
First, this is an HTML and css question (client side), not specifically an asp.net question, so the answer will apply regardless of the server-side technology.
If you want it to stretch, you need to set both the height and width explicitly. If you specify one or the other, the browser automatically adjusts the one that's not specified to maintain proportions.
Upvotes: 2