HTML CSS examples for CSS:Quiz
Rotate the <div> element 45 degrees.
<!DOCTYPE html> <html> <head> <style> div {<!-- ww w. j a va 2 s . c o m--> width: 100px; height: 100px; margin: 50px; background-color: pink; border: 1px solid black; transform: rotate(45deg); } </style> </head> <body> <div></div> </body> </html>