CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/18/2008 1:17:49 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 59 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
james85
Asp.Net User
Text in ASP Menu will not align left.2/18/2008 1:17:49 AM

0/0

Hello i currently have a masterpage that has an ASP menu dragged and dropped onto the page. The text on the menu in both the root and child elements is aligned to the center, and i want it to align left. I have tried setting the style of the div to text-align left but this is not having any effect. I'm really stuck on this. Any suggestions would be appreciated.

Thanks,

James.

sharma.pushp
Asp.Net User
Re: Text in ASP Menu will not align left.2/18/2008 3:40:00 AM

0/0

 Hi James,

 Are you using any css stylesheet with asp menu?

If yes, please find text-align: center;

and make it text-align: left; 

Cheers,
 


Pushp

If you find this post useful, mark it as an Answer
james85
Asp.Net User
Re: Text in ASP Menu will not align left.2/18/2008 9:51:59 PM

0/0

Hi, thanks for your message. Managed to get the alignment working okay. Just one more little question. I have some arrows in the parent node that point in a horizontal direction. Is there a way to change the direction of the arrows to a vertical direction (ie aiming downwards instead of to the right).

Thanks,

James.

sharma.pushp
Asp.Net User
Re: Text in ASP Menu will not align left.2/18/2008 10:17:38 PM

0/0

 Hi James,

 Those horizontal images are just the simple gif files, you can make your own or try to google it, you can find lots of arrows.. and just rename and place it in correct directory in your project.

 

Cheers
 


Pushp

If you find this post useful, mark it as an Answer
Amanda Wang - M
Asp.Net User
Re: Text in ASP Menu will not align left.2/19/2008 3:31:53 AM

0/0

Hi,

If you want to set the text of the menuitem's align is left, you try to do in the DynamicItemTemplate or StaticItemTemplate, like below:

 <asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" onmousehover="abc">
        <DynamicItemTemplate>
        <table>
        <tr>
        <td align=left>
            <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# Eval("NavigateUrl") %>'><%# Eval("Text") %></asp:HyperLink>
        </td></tr></table>
        </DynamicItemTemplate>
        <StaticItemTemplate>

         <table>
        <tr>
        <td align=left>
            <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# Eval("NavigateUrl") %>'><%# Eval("Text") %></asp:HyperLink>
        </td></tr></table>
        </StaticItemTemplate>
        </asp:Menu>

You also can try to wrap the menitem's text with a div control, then set the div's align, like below:

 protected void Menu2_MenuItemDataBound(object sender, MenuEventArgs e)
    {
            e.Item.Text = " <div style='width: 243px'  align='left'> " + e.Item.Text + "</div>";
    }

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
Amanda Wang - M
Asp.Net User
Re: Text in ASP Menu will not align left.2/25/2008 6:10:01 AM

0/0

Hi,

james85:
Just one more little question. I have some arrows in the parent node that point in a horizontal direction. Is there a way to change the direction of the arrows to a vertical direction (ie aiming downwards instead of to the right).

You can try to put the menu in a div control, set the div's dir is rtl, then the direction of the menuitem is right to the left.

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

[UDM] Developer's manual: Customising As soon as this element is found, the menu will begin to initialize, thereby removing ... so you can use the menu with right-to-left or bi-directional text. ...
How to align text, images and form controls Jan 5, 2007 ... If you are not using the GC CLF 2.0 template, you will have to define the ... alignBottomLeft{text-align: left; vertical-align: bottom;} ...
CSS2 Reference Your browser does not support inline frames or is currently configured not ..... text-align, Aligns the text in an element, left ... ASP.NET Shopping Cart ...
ASP.NET Menu : ExpertMenu Demo : Floating Menu Float property defines which position on the page the menu will have even when ..... Align.ToString().IndexOf("Left") >= 0 Then ExpertMenu1.Float.Offset. ...
Books:
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Dreamweaver MX 2004: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 836, Published: 2004
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Practical Web Technologies Authors: P. K. Yuen, V. Lau, Pages: 928, Published: 2003
Inside Flash Authors: Jody Keating, Tom Pizer, Fig Leaf Software (Firm), Pages: 1008, Published: 2001
All About New CLAiT Using Microsoft FrontPage 2002 Authors: Andrea Jones, Pages: 43, Published: 2006
Beginning DotNetNuke Skinning and Design: Skinning and Desing Authors: Andrew Hay, Nina Meiers, Shaun Walker, Pages: 432, Published: 2007
Web Color Expert: All That You Need to Create Your Own Fantastic Websites Authors: Keith Martin, Pages: 192, Published: 2003
ASP.NET Kick Start: Kick Start Authors: Stephen Walther, Pages: 624, Published: 2002
Inside Dreamweaver UltraDev 4 Authors: Sean Nicholson, Pages: 456, Published: 2001

Web:
Text in ASP Menu will not align left. - ASP.NET Forums Re: Text in ASP Menu will not align left. 02-17-2008, 10:40 PM. Contact ... Re: Text in ASP Menu will not align left. 02-18-2008, 4:51 PM ...
Menu staticSubmenu text wrap not aligning propely - ASP.NET Forums Menu staticSubmenu text wrap not aligning propely. Last post 08-03-2007 4:31 PM by Pants. 7 replies. Sort Posts: ...
how to set the text alignment of the submenu when mouseover Also, and I don't know how to use it, but there is an asp menu in the .... that if you are aligning text it will take a noun, i.e left, ...
Aligning an ASP.NET Menu Control : ASP.NET, FireFox 1.5+ NET Menu Control (horizontal) to the right instead of the left? ... With or without specifying the width the menu control will not align right. ...
[SOLVED] webpage does not show properly in IE7 but works fine with ... ...
ListView Control with DropDownExtender and Menu Sep 2, 2008 ... ...




Search This Site:










problem with loginview

create new user wizard skips a step

membership provider, storing session data?

protecting pdf files

setting password for aspnetdb

download / open a pdf file at runtime from iis web site

how to retrieve windows logon password programmatically in visual studio 2005

problem with authentication

login problem - forms authentication

ldap authentication

how to list all profiles

importing users to the asp.net membership table

direction

change loginstatus params for the login.aspx

how to programatically authenticate using (sha1 hashing) form-based authentication

membershipprovider / web.config connectivity issue

windows groups

logout user after session timeout

windows authentication, anonymous users and session -> security flaw?

restrict few pages of my site to accessible by everyone

forms authentication mode causes endless loop

log-in fails when moving code to production server

website logon problem

creating a 'register' option

forms authentication / cgi-bin issue?

login control not working...

ldap connectionstring asp.net memberships

auto login on remote site

allow deny roles

where's the table structure

  Privacy | Contact Us
All Times Are GMT