Permalink
Browse files

styling touches

  • Loading branch information...
html5cat committed Aug 12, 2011
1 parent f0d88b0 commit bcd6bc0aff1082952ba928fc2f122daaa6323d64
Showing with 25 additions and 6 deletions.
  1. +7 −5 index2.html
  2. +18 −1 style/box2d.css
View
@@ -1,13 +1,14 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!DOCTYPE html>
+<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Box2DJS - Physics Engine for JavaScript</title>
+ <meta charset="utf-8">
+ <title>Box2DJS - Physics Engine for JavaScript</title>
<!--=============================-->
<!-- Copy this part to your app. -->
<!-- START -->
<!--=============================-->
+<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Droid+Sans" type="text/css">
<script src="lib/prototype-1.6.0.2.js"></script>
<!-- box2djs -->
@@ -238,6 +239,7 @@
<link href="style/box2d.css" rel="stylesheet" type="text/css" />
</head>
<body>
- <canvas id="canvas" width='1000' height='600' style="top:0px; left:0px;"></canvas>
+ <h1>HTML5 Canvas Motocross</h1><h2> by Gregory Schlomoff and Yuriy Dybskiy</h2>
+ <canvas id="canvas" width='1000' height='600'></canvas>
</body>
</html>
View
@@ -1,7 +1,24 @@
+body {
+ background-color:#999;
+}
#canvas {
padding:0;
margin:0;
- border:1px solid white;
position:absolute;
+ top:70px;
+ left:0px;
background: url('bg.jpg') no-repeat;
}
+
+h1, h2 {
+ padding:0;
+ margin:0;
+ float:left;
+ font-family: 'Droid Sans',arial,serif;
+ padding-bottom:0;
+ font-weight: 500;
+ text-shadow:0px 1px 1px #fff;
+}
+h2 {
+ padding:7px 0px 0px 10px;
+}

0 comments on commit bcd6bc0

Please sign in to comment.