PDA

View Full Version : drop down menu



r_a
03-13-2008, 09:13 AM
1) Script Title: Drop Down Menu

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem:

Hi, I am using this script. My Site is written in - 'right to left' language -.
the script is for 'left to right' languages.

how can i change the script in order that the drop down menu will open like this:

'Right to left' word
<---------------X
<---------------X
<---------------X


thanks.

codeexploiter
03-13-2008, 09:30 AM
Add the highlighted line in the mentioned CSS ID


#dropmenudiv{
position:absolute;
border:1px solid black;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
text-align: right;
}

And the menu item orientation will be changed from left to right

rangana
03-13-2008, 09:47 AM
Or direction:rtl; in the same div as codeexploiter mentioned will do. ;)

r_a
03-16-2008, 09:02 AM
thanks.
but i still have a problem.

the text inside the drop nenu framework is in "rtl", and it's ok.

but the whole drop menu (his framework) are not in a position that oriented
to 'right to left' word.

the menu starts at the left side of the word, and become longer to the right side.

while i want that it will be like this:
the menu fromework dropes down from the right side of the word and become longer to the left:
__________word
---------------
|<<========|
|<<========|
---------------


thanks again/.