Ma ktoś jakiś pomysł?
Kod html:
<!DOCTYPE html> <meta charset="utf-8"> <meta name="Description" content=" [wstaw tu opis strony] "> <meta name="Keywords" content=" [wstaw tu slowa kluczowe] "> <meta name="Author" content=" [dane autora] "> <meta name="Generator" content="kED2"> <head> <link rel="stylesheet" href="style.css" type="text/css" /> <script type="text/javascript"> window.onload= function(){ var canvas = document.getElementById("canvas"); var context = canvas.getContext("2d"); context.lineJoin="level"; context.moveTo(29,50); context.lineTo(50,280); context.lineTo(450,50); context.closePath(); context.lineWidth = 20; context.strokeStyle = "red"; context.lineCap = "bull"; context.stroke(); context.closePath(); context.fillStyle = "blue"; }; </script> </head> <body> <canvas width="700" height="500" id="canvas"> Tresc alternatywna </canvas> </body> </html>
Kod css:
canvas { display:block; float:left; width:700px; height:500px; border:1px solid black; } #prawy { width:100px; height:300px; background-color:green; margin-left:700px; }
Serio?? Naprawdę nie ma na to rady?