Rad Menu Justify center the text

2 posts, 0 answers
  1. sam
    sam avatar
    52 posts
    Member since:
    Feb 2008

    Posted 26 Jul 2010 Link to this post

    Hello all  i am using build rad menu
    but i am facing problem with  justifiying and aligning center the text
    how can i solve Rad Menu Justify center the text?
     thanks for any help




    this is my code

    <telerik:RadMenu ID="RadMenu1" Runat="server" style="top: 0px; left: 0px"
        Font-Bold="True" Skin="Vista">
        
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        <Items>
            <telerik:RadMenuItem runat="server" Text="Home" NavigateUrl="~/Default.aspx">
            </telerik:RadMenuItem>


    please check and see the layout next to the icon in the attached picture

    thanks in advance )
            <telerik:RadMenuItem runat="server" Text="Suppliers" PostBack="False">
                <Items>
                    <telerik:RadMenuItem runat="server" Text="View Suppliers"  ImageUrl="~/Img/s.ico" Height="32px"
                        NavigateUrl="~/ManageSuppliers.aspx">
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" Text="Cars" PostBack="False">
                <Items>
                    <telerik:RadMenuItem runat="server" Text="Cars" CssClass="~/vertical.css"   NavigateUrl="~/ManageCars.aspx"
                       ImageUrl="~/Img/1cars.ico" Height="32px">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" Text="Car Models"  ImageUrl="~/Img/1models.ico" Height="32px"
                        NavigateUrl="~/ManageCarModels.aspx"   >
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/ManageCarManufacturers.aspx"  ImageUrl="~/Img/1manuf.ico" Height="32px"
                        Text="Car Manufacturers">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/ManageCarCategories.aspx" ImageUrl="~/Img/1categ.ico" Height="32px"
                        Text="Car Categories">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/ManageCarsSold.aspx" ImageUrl="~/Img/1sold.ico" Height="32px"
                        Text="Car Sold">
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" PostBack="False" Text="Companies">
                <Items>
                    <telerik:RadMenuItem runat="server"
                        NavigateUrl="~/ManageInsuranceCompanies.aspx" Text="Insurance Companies"
                       ImageUrl="~/Img/1insur.ico" Height="32px" >
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/ManageFinanceCompanies.aspx" ImageUrl="~/Img/1finance.ico" Height="32px"
                        Text="Finance Companies">
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" PostBack="False" Text="Agencies">
                <Items>
                    <telerik:RadMenuItem runat="server"
                        NavigateUrl="~/ManageTransportationAgencies.aspx"
                        Text="Transportation Agencies" ImageUrl="~/Img/1trans.ico" Height="32px">
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server"
                Text="Customers" PostBack="False">
                <Items>
                    <telerik:RadMenuItem runat="server" Text="View Customer" ImageUrl="~/Img/1customers.ico" Height="32px"
                        NavigateUrl="~/ManageCustomers.aspx">
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" PostBack="False" Text="Orders">
                <Items>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/ManageOrders.aspx" ImageUrl="~/Img/1order.ico" Height="32px"
                        Text="View Orders">
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" Text="Backup database" >
                <Items>
                    <telerik:RadMenuItem runat="server" Text="Backup" ImageUrl="~/Img/1backup.ico"
                        Height="32px" NavigateUrl="~/Backup.aspx" >
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadMenu>


    please check the attached file to see the layout and help me to justify the text
    Regards,
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 29 Jul 2010 Link to this post

    Hi sam,

    There is no image attached, but please try the following css and let me know if it helps:
    .rmText
      {
          text-align:center !important;
      }



    All the best,
    Peter
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top