06-28-2018, 09:36 AM
The image width Property:
The width property of an image is used to set the width of an image. This property can have a value in length or in %. While giving value in %, it applies it in respect of the box in which an image is available.
Here is the example:
<img style="border:1px solid red; width:100px;"
src="/images/css.gif" />
<br />
<img style="border:1px solid red; width:100%;"
src="/images/css.gif" />
The width property of an image is used to set the width of an image. This property can have a value in length or in %. While giving value in %, it applies it in respect of the box in which an image is available.
Here is the example:
<img style="border:1px solid red; width:100px;"
src="/images/css.gif" />
<br />
<img style="border:1px solid red; width:100%;"
src="/images/css.gif" />
Hasan