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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.