Skip to content
Browse files

Center google+ badges.

  • Loading branch information...
1 parent 4c1e68b commit 48f9827f967191848e11dabcee13d305ff6f7170 @jhoekx jhoekx committed Apr 12, 2012
Showing with 20 additions and 12 deletions.
  1. +15 −12 _layouts/default.html
  2. +5 −0 css/default.css
View
27 _layouts/default.html
@@ -5,6 +5,16 @@
<link type="text/css" rel="stylesheet" href="/css/default.css">
+<!-- Place this tag in the <head> of your document -->
+<script type="text/javascript">
+window.___gcfg = {lang: 'en'};
+(function()
+{var po = document.createElement("script");
+po.type = "text/javascript"; po.async = true;po.src = "https://apis.google.com/js/plusone.js";
+var s = document.getElementsByTagName("script")[0];
+s.parentNode.insertBefore(po, s);
+})();</script>
+
<h1><a href="/">Relax and Recover</a></h1>
<ul class="nav">
<li><a href="/about/">Features</a>
@@ -19,21 +29,14 @@
</div>
<div class="footer">
-<hr/>
-<!-- Place this tag in the <head> of your document -->
-<script type="text/javascript">
-window.___gcfg = {lang: 'en'};
-(function()
-{var po = document.createElement("script");
-po.type = "text/javascript"; po.async = true;po.src = "https://apis.google.com/js/plusone.js";
-var s = document.getElementsByTagName("script")[0];
-s.parentNode.insertBefore(po, s);
-})();</script>
-
+<p>
<!-- Place this tag where you want the badge to render -->
<div class="g-plus" data-href="https://plus.google.com/100515362141948679328?rel=publisher" data-width="300" data-height="69" data-theme="light"></div>
+</p>
+<p>
<!-- Place this tag where you want the +1 button to render -->
-<div class="g-plusone" data-annotation="inline" data-href="http://rear.github.com"></div>
+<div class="g-plusone" data-annotation="bubble" data-href="http://rear.github.com"></div>
+</p>
</div>
View
5 css/default.css
@@ -80,3 +80,8 @@ iframe {
margin: 1em auto;
border: 0;
}
+
+.footer {
+ border-top: 1px solid black;
+ text-align: center;
+}

0 comments on commit 48f9827

Please sign in to comment.
Something went wrong with that request. Please try again.