The width of an inline element is code example Example: how to get width of inline elements js <style> span { display: inline-block ; } </style>