| <!DOCTYPE html> | |
| <!-- | |
| | The text-indent property should only be applied to the first | |
| | formatted line in a block, which also applies to inline-blocks. | |
| | https://www.w3.org/TR/css3-text/#text-indent-property | |
| --> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| margin: 0px; | |
| font-family: Roboto; | |
| font-size: 20px; | |
| } | |
| div { | |
| width: 320px; | |
| font-weight: normal; | |
| } | |
| span { | |
| display: inline-block; | |
| } | |
| .indent { | |
| text-indent: 3em; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div>In my <span class="indent">BLOCK</span> younger and more vulnerable years</div> | |
| <div>In my <span>BLOCK</span> younger and more vulnerable years</div> | |
| </body> | |
| </html> |