My inline graphic is too big

Asked By 10 points N/A Posted on -
qa-featured

My inline graphic is too big, don't browser automatically resize graphic according to the width of the of the window the way they wrap text?

SHARE
Best Answer by Sharath Reddy
Answered By 0 points N/A #102216

My inline graphic is too big

qa-featured

 

Yes, graphic images are stretchable. Are you a web designer or a web developer? Then you will find the attribute stretchable associated with the image. If this is true then the image is resized as the browser. You will find it in ASP.NET.  Means at design time you have to specify. Another way that works with some other systems is by specifying the width and height to 100%. If your design does not support both of them then you need to create one event Window_Resize where you shall scale the width and height of the image with respect to the window/ browser size.
Thanks.
 
Best Answer
Best Answer
Answered By 590495 points N/A #102217

My inline graphic is too big

qa-featured

If you insert an image or any graphics in your web page and you did not add the elements width and height, the web browser will normally display the image as is with its actual size or dimension. If the graphics is too large for the line, not adding the width and height elements will make it look awkward since it is very large to be displayed for that line only.

In cases where images are in big sizes, adding the width and height elements will help you adjust how it is displayed in the page. It is very helpful especially for extremely large graphics that needs resizing but you don’t want to physically adjust the size of the image. To apply the 2 elements in your image, follow this format:

  • <img src=”URL” alt=”TEXT” width=”SIZE IN PIXELS” height=”SIZE IN PIXELS”>

When applied, you can have something like:

  • <img src=”http://www.mydomain.com/images/bg2.png” alt=”background” width=”100” height=”85”>

By the way, width and height elements can be inserted interchangeably.

Related Questions