css property width: fit-content code example Example: css div width fit content display: inline-block;