diff --git a/templates/details.tpl b/templates/details.tpl
index 46f3a786479368e643575d171641f30531e76727..245df24dbede5fbc93396430ca8460dc0262f8ca 100644
--- a/templates/details.tpl
+++ b/templates/details.tpl
@@ -3,7 +3,7 @@
 {{ define "title" }}Details for {{ .Wine.Name }}{{ end }}
 
 {{ define "content" }}
-<div class="box pure-u-1">
+<div class="content pure-u-1">
 	{{ with .Wine }}
 	<form class="pure-form" method="POST">
 		<input type="hidden" name="id" value="{{ .ID }}">
@@ -22,13 +22,13 @@
 	<p>And here's a picture:<br/>
 
 	<img class="pure-img" src="/details/img?id={{ .ID }}"/>
+</div>
 
-	<hr/>
-
+<footer class="box pure-u-1">
 	<form class="pure-form" method="POST" action="/delete">
 		<input type="hidden" name="id" value="{{ .ID }}">
 		<button type="submit" class="right pure-button button-warning">Delete</button>
 	</form>
+</footer>
 	{{ end }}
-</div>
 {{ end }}
\ No newline at end of file
diff --git a/templates/index.tpl b/templates/index.tpl
index 0a9a386db9f3f4a6187d94a35cf6c3f969918df9..87a49c07dec640e7af1c6f99389c462388ea4408 100644
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -18,7 +18,6 @@
 	</table>
 </div>
 
-
 <footer class="box pure-u-1">
 	<form class="pure-form" method="POST" enctype="multipart/form-data" action="/add">
 		<fieldset>