Commit 07e86012

mo khan <email@mokhan.ca>
2011-04-28 04:32:19
move scripts to bottom of application layout, and create layout.css.
1 parent 7b0b47b
Changed files (2)
app
public
stylesheets
app/views/layouts/application.html.erb
@@ -10,9 +10,7 @@
   <link rel="shortcut icon" href="/favicon.ico">
   <link rel="stylesheet" media="handheld" href="stylesheets/handheld.css?v=2">
   <script src="javascripts/libs/modernizr-1.7.min.js"></script>
-  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
   <%= stylesheet_link_tag :all %>
-  <%= javascript_include_tag :all %>
   <%= csrf_meta_tag %>
 </head>
 <body>
@@ -32,9 +30,10 @@
 
     <div id="main" role="main">
 
-    <p class="notice"><%= notice %></p>
-    <p class="alert"><%= alert %></p>
-    <%= yield %>
+      <p class="notice"><%= notice %></p>
+      <p class="alert"><%= alert %></p>
+
+      <%= yield %>
 
     </div>
 
@@ -43,6 +42,9 @@
     </footer>
   </div>
 
+  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
+  <%= javascript_include_tag :all %>
+
   <!--[if lt IE 7 ]>
   <script src="javascripts/libs/dd_belatedpng.js"></script>
   <script> DD_belatedPNG.fix('img, .png_bg');</script>
public/stylesheets/layout.css
@@ -0,0 +1,10 @@
+.width100{width: 100%;}
+.width80{width: 80%;}
+.width75{width: 75%;}
+.width50{width: 50%;}
+.width25{width: 25%;}
+.width20{width: 20%;}
+.width33{width: 33.3%;}
+.floatLeft{float:left;}
+.floatRight{float:right;}
+.image{margin-left:auto; margin-right:auto; display:block;}