Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I use Draggable jQuery Library for moving objects ( inputs, span ) tags,
after that it`s easy to get Left, Top from CSS of each object with jQuery for saving the positions of all elements in external CSS file (Server-Side StreamWriter for example) and load it again when page start.

the problem starts when i use position:absolute; for all elements. and assign left, top position of elements to CSS file, till now no problem.

but i need to apply dir attribute for example :
for making RightToLeft Page ( Arabic/ English ) .

yes it works great and Bidirectional works without absolute position . ( in relative it works )

but when use position :absolute; elements still in the same place, so that i try to replace *.CSS contents when i need change to arabic by replace left:%%px to right:%%px


but this is very bad solution.

what i should do now.

What I have tried:

i try replacing CSS content but its bad approach ineed use dir attribute to whole page without changing CSS from left: - > right:
Posted
Updated 3-Apr-17 3:58am
Comments
[no name] 3-Apr-17 9:59am    
e
[no name] 3-Apr-17 10:54am    
f

1 solution

HTML
<!DOCTYPE html>
<html>
<body>

<p dir="rtl">right-to-left!</p>
<p dir="ltr" style="Position:relative;left :50px;">left-to-right!</p>

</body>
</html>




As per your question you can use "dir" for align left2right(ltr) ,right2left (rtl)
 
Share this answer
 
Comments
[no name] 3-Apr-17 10:55am    
i will check this and will be back man, yes i need to make full Mirror-Bidirectional !! YAAAAH !! yEEEH !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900