css width property
Translation results:
UK [wɪdθ] US [wɪdθ, wɪθ, wɪtθ]
n.Width; breadth
Plural: widths
css width propertysyntax
Function:Set the width of the element.
Description: This attribute defines the width of the element's content area. Pads, borders, and margins can be added outside the content area. Inline non-replaced elements ignore this attribute.
Note: All major browsers support the width attribute.
css width propertyexample
<html> <head> <style type="text/css"> img { width: 300px } </style> </head> <body> <img src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" /> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance