width: ***; height: ***;
Browser |
|
---|
The width property specifies the width of an element, and the height property specifies the height of an element.
The width and height of the iframe can be specified by applying these properties to the IFRAME element.
iframe {
width: 300px;
height: 200px;
}
Property | Value | Explanation |
---|---|---|
width | length, %, or auto | the size of the width |
height | length, %, or auto | the size of the height |
The default is "auto".