bMenu: css menu using in MLE (LTR & RTL directions)
Posted: Wed Dec 17, 2008 11:17 am
First my post about RTL css based menu was:
http://forum.cmsmadesimple.org/index.ph ... #msg137922
Due using bMenu module and CSS menu in my page I have got some problems in IE (ofcaurse).
Folows:
- some spase between submenu elements (only in IE);
- li a hover is not working properly (only in IE);
So, after google search I will set in different from menu css folows:
So some problems solved.
I still cannot get css menu all submenu opening to left side in RTL (Arabic forexample) direction.
If somebody know solution let share this information.
Curently I set submenu width same like main elements and it expanding directly under hasparent element.
Menu centered on page and this is not well, I prefer align to right in RTL and align to left in LTR.
In idea set submenu width "auto", but in this case cannot find solution for make expanding to left side in right-to-left (RTL) pages direction.
For swaping direction I'm using folow in my template:
Where is a UDT:
Main css also have different alements for each language (I'm using: en_US, ru_RU, ar_AR, de_DE). And I'm using in full all tricks discribed by Alby in MLE part of forum.
With LTR languages no problems, but in RTL (Arabic) I have it with css based menu.
I think I discribed well my idea and problem, if you have any idea let me know please solution for css menu (horizontal) located on the right side and with expanding submenu to the left side too.
http://forum.cmsmadesimple.org/index.ph ... #msg137922
Due using bMenu module and CSS menu in my page I have got some problems in IE (ofcaurse).
Folows:
- some spase between submenu elements (only in IE);
- li a hover is not working properly (only in IE);
So, after google search I will set in different from menu css folows:
Code: Select all
#primary-nav li { /* remove some space between li elements */
vertical-align:bottom;
}
#primary-nav li a { /* make hover effect work in IE */
display:block;
width: 105px;
}I still cannot get css menu all submenu opening to left side in RTL (Arabic forexample) direction.
If somebody know solution let share this information.
Curently I set submenu width same like main elements and it expanding directly under hasparent element.
Menu centered on page and this is not well, I prefer align to right in RTL and align to left in LTR.
In idea set submenu width "auto", but in this case cannot find solution for make expanding to left side in right-to-left (RTL) pages direction.
For swaping direction I'm using folow in my template:
Code: Select all
<__html {dir language="$lang"} xmlns="...">Code: Select all
if(isset($params['language']))
{
if(($params['language']=='en_US')or($params['language']=='ru_RU')or($params['language']=='de_DE'))
{
echo 'dir="ltr"';
}
else
{
echo 'dir="rtl"';
}
}With LTR languages no problems, but in RTL (Arabic) I have it with css based menu.
I think I discribed well my idea and problem, if you have any idea let me know please solution for css menu (horizontal) located on the right side and with expanding submenu to the left side too.