home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

CSS pulldown fix for IE?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1643
Discussions: 200,989, Posts: 2,379,876, Members: 246,359
Old June 28th, 2006, 09:54 PM   Digg it!   #1 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,984
Blog Entries: 1
Send a message via MSN to EXreaction
CSS pulldown fix for IE?

On this page:
http://www.lithiumstudios.org/phpBB3/portal.php

There are 3 buttons in the header... Home, Forum, and Other Stuff
With FireFox and Opera the CSS menu works correctly, but how do I make it so that IE users can view it as well?

This is the CSS info:
Code:
/* CSS Menu
 ------------ */

.css_menu {
	background: #fff;
	border: 1px solid #ccc;
	}

.css_menu:hover {
	background: #ececec;
	}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 0px solid #ccc;
	}

ul li {
	position: relative;
	}
	
li ul {
	position: absolute;
	top: 20px;
	display: none;
	}

ul li a {
	display: block;
	text-decoration: none;
	color: #777;
	padding: 5px;
	border: 0px solid #ccc;
	border-bottom: 0;
	}

* html ul li { float: left; height: 1%; }
* html ul li a { height: 1%; }
		
li:hover ul { display: block; }
And the page...
Code:
	<div id="menubar">
		<table width="100%" cellspacing="0">
		<tr>
			<td class="genmed" width="150px">
				<ul> 
					<li><a href="index.php"><b>Forum</b></a> 
						<ul> 
 							<li class="css_menu"><a href="faq.php"><img src="{T_THEME_PATH}/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" /> {L_FAQ}</a></li>
							<!-- IF S_DISPLAY_SEARCH --><li class="css_menu"><a href="{U_SEARCH}"><img src="{T_THEME_PATH}/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" /> {L_SEARCH}</a></li><!-- ENDIF -->
							<!-- IF S_DISPLAY_MEMBERLIST --><li class="css_menu"><a href="{U_MEMBERLIST}"><img src="{T_THEME_PATH}/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" /> {L_MEMBERLIST}</a></li><!-- ENDIF -->
							<!-- IF S_USER_LOGGED_IN --><li class="css_menu"><a href="{U_PROFILE}"><img src="{T_THEME_PATH}/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" /> {L_PROFILE}</a></li><!-- ENDIF -->
						</ul> 
					</li> 
				</ul> 
			</td>
			<td class="genmed" width="150px">
				<ul> 
					<li><a><b>Other stuff</b></a> 
						<ul> 
							<li class="css_menu"><a href="viewtopic.php?f=4&t=12">Web Services</a></li> 
							<li class="css_menu"><a href="../phpbb2/index.php">phpBB2 Demo Forum</a></li> 
						</ul> 
					</li> 
				</ul> 
			</td>
		</tr>
		</table>
	</div>
__________________
My photography: Flickr

Lithium Studios - phpBB3, PHP, and Web Development
EXreaction is offline   Reply With Quote
Old June 29th, 2006, 05:00 PM     #2 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,984
Blog Entries: 1
Send a message via MSN to EXreaction
Bump, anyone?
EXreaction is offline   Reply With Quote
Old June 30th, 2006, 07:37 AM     #3 (permalink)
Ultimate Member
 
Join Date: Dec 2004
Posts: 1,558
IE doesn't natively support the CSS :hover selector for every HTML object. To be fair, IE7 does support it properly, but that doesn't help anyone yet. So anyway, in short, where you have li:hover ul { display: block; }, IE says what the heck is this "hover" thang, and ignores it. There are a few workarounds. Peter Nederlof's site has a detailed explanation of the "problem" along with a workaround you can use.

Basically, all you need to do is:
1) Download the workaround file [ right-click, save as ] and upload it to your forum root.
2) In your template file (styles/subSilver/template/overall_header.html), find this code (around line 17):
Code:
<!-- IF T_STYLESHEET_LINK -->
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
<!-- ELSE -->
and before it add:
Code:
<!--[if IE]>
<style type="text/css" media="screen">
body { behavior: url(csshover2.htc); /* call hover behaviour file */ }
</style>
<![endif]-->
You should be up and runnin now .
__________________
"Be quiet, Brain, or I'll stab you with a Q-tip"
-Homer Simpson
large_nostril is offline   Reply With Quote
Old June 30th, 2006, 12:43 PM     #4 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,984
Blog Entries: 1
Send a message via MSN to EXreaction
OMG, thats awsome.

Thanks.
EXreaction is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
css sr71000 Webmastering and Programming 11 August 10th, 2005 04:39 PM
css ryanredbaron General Gaming Discussion 3 September 4th, 2004 06:15 AM
CSS in IE golfcart General Tech Discussion 1 April 25th, 2003 04:28 PM
What would I use? CSS? BITM@D Webmastering and Programming 12 April 11th, 2002 06:52 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3070)
Charges against non-tippers dropped.. (20)
Health Care Rationing (12)
Delete an OS (17)
Nvidia GTX 260 problem (10)
Laptop with wireless problem. (12)
windows vista security holes (19)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (8)
windows 7 problem (7)
[F@H SPAM 11/16/09] ! 1/2 months to.. (39)
Internet Lost (5)
Recent Discussions
Foxconn Blackops x48 MoBo (0)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Nvidia GTX 260 problem (10)
Point and Shoot Camera Suggestions. (8)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (39)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
cell phone won't work (0)
Is the PSU I received dead? (15)
Can't open Word (12)
Steam ID's, Gamertags etc... (4)


All times are GMT -4. The time now is 07:58 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28