By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,103 Members | 1,130 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,103 IT Pros & Developers. It's quick & easy.

Dynamic Menu Items is not right aligned with Right to Left documen

P: n/a
Hi All,

I have a Right to Left web page with asp.net 2.0 containing a horizontal menu.

The menu is right to left as the page.

The problem is the submenu items or the dynamic menu items are not aligned
right, so the menu has a bad shape.

-------------------------------------------------------------

This is the source code of the page:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="Test_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body style="direction: rtl">

<form id="form1" runat="server">

<div>

<asp:Menu ID="Menu1" runat="server" BackColor="White" Font-Size="XX-Large"
Orientation="Horizontal">

<StaticMenuItemStyle BackColor="#FFC0FF" />

<DynamicMenuItemStyle BackColor="#FFC0FF" />

<Items>

<asp:MenuItem Text="ملف" Value="ملف">

<asp:MenuItem Text="فت*" Value="فت*"></asp:MenuItem>

<asp:MenuItem Text="قفل" Value="قفل"></asp:MenuItem>

<asp:MenuItem Text="جديد" Value="جديد"></asp:MenuItem>

</asp:MenuItem>

<asp:MenuItem Text="تعديل" Value="تعديل">

<asp:MenuItem Text="نسخ" Value="نسخ"></asp:MenuItem>

<asp:MenuItem Text="قص" Value="قص"></asp:MenuItem>

<asp:MenuItem Text="لصق" Value="لصق"></asp:MenuItem>

</asp:MenuItem>

<asp:MenuItem Text="ادراج" Value="ادراج">

<asp:MenuItem Text="نص" Value="نص"></asp:MenuItem>

<asp:MenuItem Text="ملف" Value="ملف"></asp:MenuItem>

</asp:MenuItem>

</Items>

</asp:Menu>

</div>

</form>

</body>

</html>
Dec 28 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.