#myID {
height: 100px; /* Sets the height */
width: 200px; /* Sets the width */
}
/* or... */
.myClass {
height: 220px; /* Sets the height */
width: 40px; /* Sets the width */
}
/* They both work! */
-2
0
larghezza in css
The width property in CSS specifies the width of the element's content area. This “content” area is the portion inside the padding, border, and margin of an element (the box model).