arekanderu
08-07-2007, 01:44 PM
Hello,
After some long long research on Google and on CodingForums i still can not figure out how do i use the htc file with the fix on this issue. A previous thread can be found here:
http://www.codingforums.com/showthread.php?t=114518
The test with my menu can be found here:
http://www.e-djs.gr/tests/hover/
The HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Hover Test</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="Generator" content="" />
<meta name="robots" content="index, follow" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper">
<div id="info_block">
</div>
<div id="main_menu">
<ul id="mainlevel">
<li><a href="" class="mainlevel" ></a>Button 1</li>
<li><a href="" class="mainlevel" ></a>Button 2</li>
<li><a href="" class="mainlevel" ></a>Button 3</li>
<li><a href="" class="mainlevel" ></a>Button 4</li>
</ul>
</div>
</div>
</body>
</html>
The CSS:
body
{
behavior:url(hover.htc);
}
body
{
background: #525859;
font-family: Arial, Helvetica, san-serif;
font-size: 13px;
}
div.wrapper
{
margin: 0 auto;
width: 800px;
position: relative;
background: #FFFFFF;
}
#main_menu
{
width: 400px;
margin: 0;
float: left;
height: 33px;
background: #737173;
}
#main_menu ul
{
list-style-type: none;
margin: 0;
padding: 0;
}
#main_menu ul li
{
border-left: 2px solid #000000;
display: block;
float: left;
padding: 8px 20px;
}
#main_menu ul li a, ul li a:visited
{
color: #FFFFFF;
font-size: 12px;
font-weight: bold;
text-decoration: none;
}
#main_menu ul li:hover
{
background: #000000;
}
The HTC File was taken from here:
http://4umi.com/web/css/hover.htm
The quesstion
What do i need to change on the CSS in order to make the htc file work properly on FF and IE 6 ?
Some further notes.
1)The test on the http://4umi.com/web/css/hover.htm web site, works only with my FF (I have Windows 2003, IE ver 6.0.3790 ) but on my laptop with XP SP2 works fine under IE as well.
2)The test i posted does not work on my laptop with XP either even though i tried various stuff on the CSS file.
Looking forward to any replies and thank you for your time
After some long long research on Google and on CodingForums i still can not figure out how do i use the htc file with the fix on this issue. A previous thread can be found here:
http://www.codingforums.com/showthread.php?t=114518
The test with my menu can be found here:
http://www.e-djs.gr/tests/hover/
The HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Hover Test</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="Generator" content="" />
<meta name="robots" content="index, follow" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper">
<div id="info_block">
</div>
<div id="main_menu">
<ul id="mainlevel">
<li><a href="" class="mainlevel" ></a>Button 1</li>
<li><a href="" class="mainlevel" ></a>Button 2</li>
<li><a href="" class="mainlevel" ></a>Button 3</li>
<li><a href="" class="mainlevel" ></a>Button 4</li>
</ul>
</div>
</div>
</body>
</html>
The CSS:
body
{
behavior:url(hover.htc);
}
body
{
background: #525859;
font-family: Arial, Helvetica, san-serif;
font-size: 13px;
}
div.wrapper
{
margin: 0 auto;
width: 800px;
position: relative;
background: #FFFFFF;
}
#main_menu
{
width: 400px;
margin: 0;
float: left;
height: 33px;
background: #737173;
}
#main_menu ul
{
list-style-type: none;
margin: 0;
padding: 0;
}
#main_menu ul li
{
border-left: 2px solid #000000;
display: block;
float: left;
padding: 8px 20px;
}
#main_menu ul li a, ul li a:visited
{
color: #FFFFFF;
font-size: 12px;
font-weight: bold;
text-decoration: none;
}
#main_menu ul li:hover
{
background: #000000;
}
The HTC File was taken from here:
http://4umi.com/web/css/hover.htm
The quesstion
What do i need to change on the CSS in order to make the htc file work properly on FF and IE 6 ?
Some further notes.
1)The test on the http://4umi.com/web/css/hover.htm web site, works only with my FF (I have Windows 2003, IE ver 6.0.3790 ) but on my laptop with XP SP2 works fine under IE as well.
2)The test i posted does not work on my laptop with XP either even though i tried various stuff on the CSS file.
Looking forward to any replies and thank you for your time