calc-text-indent-1-ref.html (623B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>CSS Reference: text-indent: calc()</title> 5 <link rel="author" title="L. David Baron" href="https://dbaron.org/"> 6 <style type="text/css"> 7 8 body { width: 500px } 9 p { font-size: 10px } 10 11 </style> 12 </head> 13 <body> 14 15 <p style="text-indent: 247px">50% - 3px</p> 16 <p style="text-indent: 247px">25% - 3px + 25%</p> 17 <p style="text-indent: 247px">25% - 3px + 12.5% * 2</p> 18 <p style="text-indent: 247px">25% - 3px + 12.5%*2</p> 19 <p style="text-indent: 247px">25% - 3px + 2*12.5%</p> 20 <p style="text-indent: 247px">25% - 3px + 2 * 12.5%</p> 21 <p style="text-indent: 250px">30% + 20%</p> 22 </body> 23 </html>