From 86da480b2ba76aa1547f035e33924aa8f57c2eeb Mon Sep 17 00:00:00 2001 From: pete Date: Sun, 17 Aug 2008 11:58:38 +0000 Subject: avatar menu fix for IE groups and profile pages git-svn-id: https://code.elgg.org/elgg/trunk@1978 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/groups/css.php | 1 - mod/profile/views/default/profile/css.php | 6 +++--- mod/profile/views/default/profile/javascript.php | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) (limited to 'mod') diff --git a/mod/groups/views/default/groups/css.php b/mod/groups/views/default/groups/css.php index 36aae6d92..b86703711 100644 --- a/mod/groups/views/default/groups/css.php +++ b/mod/groups/views/default/groups/css.php @@ -175,7 +175,6 @@ margin:0 0 10px 0; } .forum_latest .topic_owner_icon { - position:relative; float:left; } .forum_latest .topic_title { diff --git a/mod/profile/views/default/profile/css.php b/mod/profile/views/default/profile/css.php index 234d6fb39..5083e73d1 100644 --- a/mod/profile/views/default/profile/css.php +++ b/mod/profile/views/default/profile/css.php @@ -36,9 +36,9 @@ background:#FFFFFF; text-align:left; } - -* html .usericon div.sub_menu { } /* IE6 */ -*+html .usericon div.sub_menu { } /* IE7 */ +div.usericon a.icon img { + z-index:10; +} .usericon div.sub_menu a {margin:0;padding:2px;} .usericon div.sub_menu a:link, diff --git a/mod/profile/views/default/profile/javascript.php b/mod/profile/views/default/profile/javascript.php index 24bf20689..4e96279bb 100644 --- a/mod/profile/views/default/profile/javascript.php +++ b/mod/profile/views/default/profile/javascript.php @@ -65,10 +65,9 @@ function setup_avatar_menu() { .fadeIn('normal'); } - // fix for ie z-index bug - //submenu.css("z-index", parseInt( new Date().getTime()/100000000 )); - + // force z-index - workaround for IE z-index bug avatar.css("z-index", submenuLayer); + avatar.find("a.icon img").css("z-index", submenuLayer); submenu.css("z-index", submenuLayer+1); submenuLayer++; -- cgit v1.2.3