diff options
-rw-r--r-- | perllib/Page.pm | 16 | ||||
-rw-r--r-- | web/css.css | 34 |
2 files changed, 43 insertions, 7 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm index 26a3b74df..a5e50951c 100644 --- a/perllib/Page.pm +++ b/perllib/Page.pm @@ -6,7 +6,7 @@ # Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: Page.pm,v 1.5 2006-09-19 23:45:33 matthew Exp $ +# $Id: Page.pm,v 1.6 2006-09-20 12:25:05 matthew Exp $ # package Page; @@ -72,7 +72,7 @@ sub header ($$%) { </head> <body> <h1>Neighbourhood Fix-It</h1> - <div id="content"> + <div id="container"><div id="content"> EOF return $html; } @@ -83,7 +83,17 @@ EOF sub footer ($) { my ($q) = @_; return <<EOF; -</div> +</div></div> +<h2 class="v">Navigation</h2> +<ul id="navigation"> +<li><a href="/">Home</a> +<li><a href="/about">About</a> +<li><a href="/faq">FAQ</a> +<li><a href="/contact">Contact</a> +</ul> + +<p id="footer"></p> + </body> </html> EOF diff --git a/web/css.css b/web/css.css index 7418f766d..6c068b6bd 100644 --- a/web/css.css +++ b/web/css.css @@ -1,16 +1,44 @@ + +/* Generics */ + body { font-family: "Gill Sans", "Gill Sans MT", Helvetica, Arial, sans-serif; } + h1 { border-bottom: solid 1px #999999; - margin: 0; + margin: 0 0 1em 0; } +.v { display: none; } + #error { color: #cc0000; font-size: larger; } +/* Site-wide layout */ + +#container { + margin-left: -12em; + width: 100%; + float: right; +} +#content { + margin-left: 12em; +} +#content > *:first-child { + margin-top: 0; +} +#navigation { + width: 8em; + float: left; + padding: 0 2em 0 0; + margin: 0 0 1em 2em; +} + +/* Individual pages */ + #map { border: solid 1px #000000; width: 500px; @@ -35,9 +63,7 @@ h1 { padding: 3px; font-size: 83%; } -#wrap { -} -#column { +#compass { float: left; } #compass img { |