Permalink
Browse files

Make the labels show up.

  • Loading branch information...
1 parent ea7eddf commit b11015f0cd49b6915c89e020af384fe01dca5772 @spraints committed Apr 19, 2012
Showing with 12 additions and 4 deletions.
  1. +8 −0 public/app.css
  2. +4 −4 views/index.coffee
View
@@ -2,6 +2,14 @@ body {
font-family: Helvetica, sans-serif;
}
+label {
+ display: inline-block;
+ width: 150px;
+}
+form .field input {
+ width: 20px;
+}
+
.problem {
float: left;
border-bottom: solid 1px black;
View
@@ -1,10 +1,10 @@
h1 'Make a math worksheet'
form action: 'worksheet', method: 'get', ->
- div ->
- label 'Number of problems', for: 'count'
+ div class: 'field', ->
+ label for: 'count', -> 'Number of problems'
input id: 'count', name: 'count', value: 10
- div ->
- label 'Highest term', for: 'max'
+ div class: 'field', ->
+ label for: 'max', -> 'Highest term'
input id: 'max', name: 'max', value: 5
div ->
input type: 'submit', value: 'Make the worksheet'

0 comments on commit b11015f

Please sign in to comment.