Hi,
I have a problem to get this working on Opera 7.x+. This does not need
to work on older Opera browsers
There are problems on rendering the sub-level navigation. It aligns
right on Firefox and IE 6.
Sometimes there are also some problems on IE 5 or IE 5.5.
I would like the navigation to work like this:
* The menu item width should not be defined because it differs on every
language.
* The sub navigation item should be aligned to the mainmenu containing
the menu item. The problem with Opera
comes if we have more than one subnavigation items. The items aren't
aligned next to each other. Instead they are
aligned one item per line.
Thanks in advance.
----------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test navigation</title>
<style type="text/css">
<!--
html {margin:0px;}
body {margin:0px;pad ding:0px;font-family: Arial, Helvetica,
sans-serif;font-size: 62.5%;}
#navwrapper{fon t-family: Arial, Helvetica,
sans-serif;font-size:1.2em;widt h:712px;height: 48px;margin:0px 0px 10px
0px;}
#navleft,#navri ght {float:left;wid th:8px;height:4 8px;}
#navitems {position:relat ive;left:0;top: 0;margin:0px 0px 0px 0px;}
#main_navi {margin:0;paddi ng:0;list-style:none;disp lay:inline;}
#main_navi li {margin:0px 0px 0px
0px;padding:0px ;float:left;pos ition:relative; }
#main_navi .divider,
#main_navi .divider:active
{float:left;tex t-decoration:none ;font-weight:bold;dis play:block;marg in:0px;padding: 5px
6px 5px 6px;}
#main_navi .no_divider,
#main_navi .no_divider:act ive
{float:left;tex t-decoration:none ;font-weight:bold;dis play:block;marg in:0px;padding: 5px
6px 5px 6px;}
#main_navi li.on{
color:#2C568B;b ackground-color:#E7F0FF;h eight:25px;floa t:left;text-decoration:none ;font-weight:bold;mar gin:0px;padding :0px;}
#sub_navi
{position:absol ute;left:0px;to p:25px;margin:0 ;padding:0;list-style:none;disp lay:inline;
white-space:nowrap;}
#sub_navi li
{float:left;hei ght:22px;text-decoration:none ;font-weight:bold;mar gin:0px;padding :0px;display:in line;}
#sub_navi li.list_on
{height:22px;fl oat:left;text-decoration:none ;font-weight:bold;mar gin:0px;padding :0px;}
#sub_navi span.link_on
{color:#2C568B; float:left;text-decoration:none ;font-weight:bold;
margin:0px;padd ing:4px 6px 4px 6px;}
#search {margin:0px 0px 0px 500px;padding:4 px 0px 0px 3px;height:25px ;}
#search_box{wid th:130px;height :18px;margin:0p x 5px 0px 4px;border:1px
solid #A4ABB1;float:l eft;}
-->
</style>
</head>
<body>
<div id="navwrapper" >
<div id="navleft">&n bsp;</div>
<div id="navitems">
<ul id="main_navi" >
<li><a href="#" class="divider" >Menu 1</a></li>
<li class="list_on" ><span class="divider" >Menu 2</span>
<ul id="sub_navi">
<li><a href="#">Sub Menu 1</a></li>
<li class="list_on" ><span class="link_on" >Sub Menu 2</span></li>
</ul>
</li>
<li><a href="#" class="divider" >Menu 3</a></li>
<li><a href="#" class="divider" >Menu 4</a></li>
<li><a href="#" class="divider" >Menu 5</a></li>
<li><a href="#" class="no_divid er">Menu 6</a></li>
</ul>
<div id="navright">& nbsp;</div>
</div>
<div id="search">
<form name="form1" id="form1" method="post" action="#">
<input type="Text" name="qt" id="search_box " />
<a href="javascrip t:document.form 1.submit();">Se arch</a>
</form>
</div>
</div>
</body>
</html>
I have a problem to get this working on Opera 7.x+. This does not need
to work on older Opera browsers
There are problems on rendering the sub-level navigation. It aligns
right on Firefox and IE 6.
Sometimes there are also some problems on IE 5 or IE 5.5.
I would like the navigation to work like this:
* The menu item width should not be defined because it differs on every
language.
* The sub navigation item should be aligned to the mainmenu containing
the menu item. The problem with Opera
comes if we have more than one subnavigation items. The items aren't
aligned next to each other. Instead they are
aligned one item per line.
Thanks in advance.
----------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test navigation</title>
<style type="text/css">
<!--
html {margin:0px;}
body {margin:0px;pad ding:0px;font-family: Arial, Helvetica,
sans-serif;font-size: 62.5%;}
#navwrapper{fon t-family: Arial, Helvetica,
sans-serif;font-size:1.2em;widt h:712px;height: 48px;margin:0px 0px 10px
0px;}
#navleft,#navri ght {float:left;wid th:8px;height:4 8px;}
#navitems {position:relat ive;left:0;top: 0;margin:0px 0px 0px 0px;}
#main_navi {margin:0;paddi ng:0;list-style:none;disp lay:inline;}
#main_navi li {margin:0px 0px 0px
0px;padding:0px ;float:left;pos ition:relative; }
#main_navi .divider,
#main_navi .divider:active
{float:left;tex t-decoration:none ;font-weight:bold;dis play:block;marg in:0px;padding: 5px
6px 5px 6px;}
#main_navi .no_divider,
#main_navi .no_divider:act ive
{float:left;tex t-decoration:none ;font-weight:bold;dis play:block;marg in:0px;padding: 5px
6px 5px 6px;}
#main_navi li.on{
color:#2C568B;b ackground-color:#E7F0FF;h eight:25px;floa t:left;text-decoration:none ;font-weight:bold;mar gin:0px;padding :0px;}
#sub_navi
{position:absol ute;left:0px;to p:25px;margin:0 ;padding:0;list-style:none;disp lay:inline;
white-space:nowrap;}
#sub_navi li
{float:left;hei ght:22px;text-decoration:none ;font-weight:bold;mar gin:0px;padding :0px;display:in line;}
#sub_navi li.list_on
{height:22px;fl oat:left;text-decoration:none ;font-weight:bold;mar gin:0px;padding :0px;}
#sub_navi span.link_on
{color:#2C568B; float:left;text-decoration:none ;font-weight:bold;
margin:0px;padd ing:4px 6px 4px 6px;}
#search {margin:0px 0px 0px 500px;padding:4 px 0px 0px 3px;height:25px ;}
#search_box{wid th:130px;height :18px;margin:0p x 5px 0px 4px;border:1px
solid #A4ABB1;float:l eft;}
-->
</style>
</head>
<body>
<div id="navwrapper" >
<div id="navleft">&n bsp;</div>
<div id="navitems">
<ul id="main_navi" >
<li><a href="#" class="divider" >Menu 1</a></li>
<li class="list_on" ><span class="divider" >Menu 2</span>
<ul id="sub_navi">
<li><a href="#">Sub Menu 1</a></li>
<li class="list_on" ><span class="link_on" >Sub Menu 2</span></li>
</ul>
</li>
<li><a href="#" class="divider" >Menu 3</a></li>
<li><a href="#" class="divider" >Menu 4</a></li>
<li><a href="#" class="divider" >Menu 5</a></li>
<li><a href="#" class="no_divid er">Menu 6</a></li>
</ul>
<div id="navright">& nbsp;</div>
</div>
<div id="search">
<form name="form1" id="form1" method="post" action="#">
<input type="Text" name="qt" id="search_box " />
<a href="javascrip t:document.form 1.submit();">Se arch</a>
</form>
</div>
</div>
</body>
</html>
Comment