Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 518 Bytes

Image+Width+Unit.md

File metadata and controls

9 lines (7 loc) · 518 Bytes

Width Unit

The width of an image can be specified in three ways: pixels, percentage or auto.

Value Definition
Pixels The width is specified in a number of pixels. If you specify both width and height, the image will be scaled proportionally in the rectangle you define.
Percentage The width is specified in a percentage of the container of the image. It can be larger than its original width in which case the image is stretched.
Auto The width of the given image is used.