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