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

Discussion in 'ASP .Net' started by =?Utf-8?B?QmlzaG95?=, Dec 28, 2006.

  1. 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>
     
    =?Utf-8?B?QmlzaG95?=, Dec 28, 2006
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.