CSS Property:
width:

Result:
CSS Code:
div {
    width:auto;
}
Click the property values above to see the result
W3Schools.com - Play it