From a5022b38fccfbf5c4d88d505d336340f504e2143 Mon Sep 17 00:00:00 2001 From: Ted Serbinski Date: Tue, 30 Jan 2007 04:57:20 +0000 Subject: [PATCH] bring back fixed position menu, but fix it from overlapping the theme --- simplemenu.css | 2 +- simplemenu.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/simplemenu.css b/simplemenu.css index bf1da47d..9bbe8228 100644 --- a/simplemenu.css +++ b/simplemenu.css @@ -14,7 +14,7 @@ background:#ddd; border-bottom:1px solid #999; font:11px Verdana, Helvetica, sans-serif; left:0; -position:static; +position:fixed; top:0; width:100%; height:21px; diff --git a/simplemenu.js b/simplemenu.js index 3f30ba8d..fed20cf4 100644 --- a/simplemenu.js +++ b/simplemenu.js @@ -6,6 +6,7 @@ $(document).ready(function() { // insert extra
so menu doesn't overlap theme $('').prependTo('body'); + $('body').css('margin-top', '23px'); // Drupal menu callback $('#simplemenu').load(basePath + 'simplemenu/menu', function() {