1
unimatrix
Content DHTML FF Hack/FIX
  • 2006/4/25 22:55

  • unimatrix

  • Just popping in

  • Posts: 17

  • Since: 2005/12/24


Better solution that what I first posted:

Goto the template manager and clone the default template set.

Then edit the ct_dhtml_site_nav_block.html file
Here is the new code:

<style type="text/css" media="screen"
@
import "tanfa.css";
/**************** menu coding *****************/
#menu {width: 100%;} /* Width of Individual Menu */
#menu ul ul {
    
border:1px solid #FF9933; 
    
background-color:#C3CEE1;
    
margin-top:5px;} /* style of submenus */
/*******No Need To Edit Below Here***********/
#menu ul {list-style: none;margin: 0;padding: 0;}
#menu li {position: relative; [b]list-style: none;[/b]}
#menu ul ul {position: absolute;top: 0;left: 100%;width: 100%;}
<{$block.cssul1}>{displaynone;}
<{
$block.cssul2}>{displayblock;}
/***** General formatting only ****/
</style>
<!--[if 
IE]>
<
style type="text/css" media="screen">
body {
behaviorurl(<{$xoops_url}>/modules/content/csshover.htc);
font-size100%;

#menu ul li {float: left; width: 100%;}
#menu ul li a {height: 1%;} 

#menu a, #menu h2 {
fontbold 0.7em/1.4em arialhelveticasans-serif;


</
style>
<![endif]-->
<
table class="blocks" cellspacing="1" cellpadding="0" width="100%">
  <
tr>
    <
td id="mainmenu">
        <
div id="menu">
        <{
$block.ct_menu}>
        </
div></td>
  </
tr>
</
table>


All I added is in bold.

Then in the General Settings, select your new template set and the DHTML menu in FF is fixed.

As to the MSIE font issue: something here looks odd to me with the tags and bracket

<!--[if IE]>
<
style type="text/css" media="screen">
body {
behaviorurl(<{$xoops_url}>/modules/content/csshover.htc);
font-size100%;

#menu ul li {float: left; width: 100%;}
#menu ul li a {height: 1%;} 

#menu a, #menu h2 {
fontbold 0.7em/1.4em arialhelveticasans-serif;


</
style>
<![endif]-->

Login

Username:
Password:

Lost Password? Register now!

Who's Online

64 user(s) are online (38 user(s) are browsing Support Forums)


Members: 0


Guests: 64


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits