rotation-on-scoped-element-ref.html (331B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1"> 6 </head> 7 <style> 8 #target { 9 background-color: green; 10 transform: rotate(45deg); 11 width: 200px; 12 height: 200px; 13 margin: 100px; 14 } 15 </style> 16 <body> 17 <div id="target"></div> 18 </body> 19 </html>