HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> p{ font-stretch: condensed; } </style> </head> <body> <h1>CSS font-stretch Property</h1> <p>This is a paragraph.</p> <button onclick="myFunction()">Click Me</button> <script> var x = document.getElementsByTagName("p")[0]; function myFunction(){ x.style.fontStretch = "expanded"; } </script> <p><strong>Note</strong>: click on the button to change the 'font-variant' from condensed to expanded. CSS 'font-stretch' property is not supported in any modern web browser.</p> </body> </html>
OUTPUT
×

Save as Private