From 4c3e4a2244e66e73dc87ce1988ad8b61b794baba Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Sat, 31 Dec 2016 14:13:09 +1100 Subject: Navbar now nice and horizontal --- project/assets/css/default.css | 29 +++++++++++++++++++++++++++++ project/templates/base.html | 16 ++++++++-------- 2 files changed, 37 insertions(+), 8 deletions(-) diff --git a/project/assets/css/default.css b/project/assets/css/default.css index a56111e..a3805ee 100644 --- a/project/assets/css/default.css +++ b/project/assets/css/default.css @@ -1,8 +1,37 @@ +/* Some hopefully sensible defaults. */ + body { margin:1em auto; max-width:40em; font:1.2em/1.62em sans-serif; } + + + +/* A bunch of nonsense to make the navbar + horizontal and evenly spaced. */ + +nav ul { + width: 85%; + text-align: justify; + line-height: 0; + margin: 0 auto 0 auto; + padding: 0; +} + + +nav ul:after { + content: ''; + display: inline-block; + width: 100%; +} + + +nav ul li { + display: inline-block; + line-height: 100%; +} + diff --git a/project/templates/base.html b/project/templates/base.html index d8d7322..2e5a549 100644 --- a/project/templates/base.html +++ b/project/templates/base.html @@ -1,22 +1,22 @@ - + Jed Barber - {% block title %}{% endblock %} - +
-
+
{% block content %} {% endblock %} -
+ -- cgit