Can someone tell me why the text in my menu's is still centered ?
I even included DynamicMenuItemStyle-Style="text-align:left"
and the text on all menu items are centered instead of aligned left.
Hmm, copying your code it looks aligned left to me. Can you post a screenshot.
What version of ASP.NET are you using? Check your stylesheets too; use the IE Developer Tools, or something like Firebug in Firefox to see what the actual CSS and layout is.
I updated the screenshot: http://spacecoasthomes.net/menu.jpg
your looking at the static menu being left aligned. I am talking about the
actual child menu text. They are centered, I would like them aligned left.
Also, Any odea how to get rid of the arrows on the parent menu?
pmcs
Member
61 Points
32 Posts
Unable to make menu text align left in .net menu control
Feb 23, 2012 03:42 AM|LINK
Can someone tell me why the text in my menu's is still centered ?
I even included DynamicMenuItemStyle-Style="text-align:left"
and the text on all menu items are centered instead of aligned left.
Thank You in advance for your help,
Eric
<asp:Menu id="MainNavigationMenu" Runat="Server" Orientation="Horizontal"
position="absolute"
top="0px"
left="0px"
border-collapse="collapse"
display="block"
text-decoration="none"
height="19px"
StaticDisplayLevels="1"
StaticMenuItemStyle-HorizontalPadding="8"
StaticMenuItemStyle-VerticalPadding="1"
StaticMenuItemStyle-Font-Name="Verdana"
StaticMenuItemStyle-Font-Size="9pt"
StaticMenuItemStyle-ForeColor="#FFFFFF"
StaticHoverStyle-BackColor="#000000"
StaticHoverStyle-ForeColor="#FFFFFF"
DynamicMenuStyle-HorizontalPadding="8"
Dynamicmenuitemstyle-itemspacing="4"
DynamicMenuStyle-BackColor="#2D4279"
DynamicMenuStyle-ForeColor="#FFFFFF"
DynamicMenuStyle-BorderWidth="1"
DynamicMenuStyle-BorderColor="#C0C0C0"
DynamicMenuItemStyle-HorizontalPadding="8"
DynamicMenuItemStyle-Style="text-align:left"
DynamicMenuItemStyle-Font-Name="Verdana"
DynamicMenuItemStyle-Font-Size="9pt"
DynamicMenuItemStyle-ForeColor="#FFFFFF"
DynamicHoverStyle-BackColor="#000000"
DynamicHoverStyle-ForeColor="#FFFFFF"
>
<Items>
<asp:MenuItem Text="Reports">
<asp:MenuItem Text="1:Summary Met/Not Met" NavigateUrl="~/Web/Reports/SummaryMetNotMet.aspx"/>
<asp:MenuItem Text="2:Summary Adm Reasons" NavigateUrl="~/Web/Reports/ReasonsforAdmReviews.aspx"/>
<asp:MenuItem Text="3:Summary CS Reasons" NavigateUrl="~/Web/Reports/ReasonsCSReviews.aspx"/>
<asp:MenuItem Text="4:Summary RLOC Reason(L)" NavigateUrl="~/Web/Reports/SummaryRLOCReason.aspx"/>
<asp:MenuItem Text="5:Pt Reviews Met/Not Met(L)" NavigateUrl="~/Web/Reports/PatientLevelMetNotMet.aspx"/>
<asp:MenuItem Text="6:Pt Reviews Met/Not Met Custom(L)" NavigateUrl="~/Web/Reports/PatientLevelMetNotMetCustom.aspx"/>
<asp:MenuItem Text="7:Reviews for One Pt(L)" NavigateUrl="~/Web/Reports/PatientDetails.aspx"/>
<asp:MenuItem Text="8:Physician Reviews(L)" NavigateUrl="~/Web/Reports/PhysicianAdvisor.aspx"/>
<asp:MenuItem Text="9:Phy UM Advisor Response(L)" NavigateUrl="~/Web/Reports/PysicianUMAdvisorResponse.aspx"/>
<asp:MenuItem Text="10:Unsched Readmission(L)" NavigateUrl="~/Web/Reports/Unscheduled30DayReadmit.aspx"/>
<asp:MenuItem Text="11:RLOC Aggregate(L)" NavigateUrl="~/Web/Reports/ROLC.aspx"/>
<asp:MenuItem Text="12:Clin Comments Detail(L)" NavigateUrl="~/Web/Reports/DetailedPatient.aspx"/>
<asp:MenuItem Text="Enhanced Report Menu" NavigateUrl="~/Web/AnalyticalReportsMenu.aspx"/>
</asp:MenuItem>
Dave Sussman
All-Star
37716 Points
5005 Posts
ASPInsiders
MVP
Re: Unable to make menu text align left in .net menu control
Feb 23, 2012 08:24 AM|LINK
Hmm, copying your code it looks aligned left to me. Can you post a screenshot.
What version of ASP.NET are you using? Check your stylesheets too; use the IE Developer Tools, or something like Firebug in Firefox to see what the actual CSS and layout is.
pmcs
Member
61 Points
32 Posts
Re: Unable to make menu text align left in .net menu control
Feb 23, 2012 01:08 PM|LINK
Hi,
Here is a screen shot :
http://spacecoasthomes.net/menu.jpg
I'm not using any CSS in the pages inwhich this menu is referenced (as far as I can see).
help ! (and thanks)
Eric
Ruchira
All-Star
42888 Points
7020 Posts
MVP
Re: Unable to make menu text align left in .net menu control
Feb 23, 2012 01:42 PM|LINK
Hi,
To me, it's left aligned. So I suggest you to clear your browser cache and try agian (CTRL+F5, CTRL+R)
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.pmcs
Member
61 Points
32 Posts
Re: Unable to make menu text align left in .net menu control
Feb 23, 2012 02:46 PM|LINK
Hi,
I updated the screenshot: http://spacecoasthomes.net/menu.jpg
your looking at the static menu being left aligned. I am talking about the
actual child menu text. They are centered, I would like them aligned left.
Also, Any odea how to get rid of the arrows on the parent menu?
Thank You once again !
Eric
Ruchira
All-Star
42888 Points
7020 Posts
MVP
Re: Unable to make menu text align left in .net menu control
Feb 23, 2012 02:49 PM|LINK
Hello,
No. Child menu itself is left aligned too.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.adamturner34
Contributor
3834 Points
963 Posts
Re: Unable to make menu text align left in .net menu control
Feb 23, 2012 03:04 PM|LINK
As alreayd mentioned...clear your cache and try again. Looks fine to me.
pmcs
Member
61 Points
32 Posts
Re: Unable to make menu text align left in .net menu control
Feb 23, 2012 03:12 PM|LINK
Doen that and still seeing it centered.
There must be another CSS on the page overriding
the Menu control.
Thanks,
Eric
Ps Any idea how to get rid of the arrows on the parent menu ?
Dave Sussman
All-Star
37716 Points
5005 Posts
ASPInsiders
MVP
Re: Unable to make menu text align left in .net menu control
Feb 23, 2012 03:22 PM|LINK
Yes, that's probably a CSS that's overriding it; use the devtools or firebug to see what.
The arrow is controlled by a property: StaticEnableDefaultPopoutImage. Set that to false.
pmcs
Member
61 Points
32 Posts
Re: Unable to make menu text align left in .net menu control
Feb 23, 2012 03:49 PM|LINK
Thank You, You Rock !
I am going to mark this as answered pending analysis of the over riding CSS.
Eric