Sunday, August 5, 2012

Apply border on canvas

Apply border on canvas


<!DOCTYPE html>
<html>
<head>
 <style type="text/css">
 canvas {border:3px dotted blue;}
 </style>
</head>
<body>
<center>

<canvas width="250" height="200">
Sorry! Your browser doesn't support Canvas.
</canvas>

<canvas style="border: 5px solid;" width="250" height="200">
Sorry! Your browser doesn't support Canvas.
</canvas>

</body>
</html>


No comments:

Post a Comment