1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Styling the CANVAS element</title> <style type="text/css"> canvas{ position: absolute; top:37px; left:4em; background:lime; border:.5em solid black; height:1em; width:1em; display:block; } </style> </head> <body> <canvas></canvas> </body> </html>