<body> <div> Test (23.5 * 0.8 = 18.75px) <div> Test (18.75 * 0.8 = 15px) <div> Test (15 * 0.8 = 12px) <div> Test (12 * 0.8 = 9.6px) </div> </div> </div> </div> </body>
body { font-size: 23.5px; text-align: center; background: #ff5722; } div { font-size: .8em; color: #64ffda; font-weight: bold; padding: 2em; }