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 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'project/assets') 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%; +} + -- cgit