Menu Separatorshttp://forums.asp.net/t/1802516.aspx/1?Menu+SeparatorsFri, 11 May 2012 10:59:43 -040018025164975414http://forums.asp.net/p/1802516/4975414.aspx/1?Menu+SeparatorsMenu Separators <p><span style="color:#222222; line-height:115%; font-family:'Segoe UI','sans-serif'; font-size:9.5pt">I would like to display a vertical bar between horizontal menu items, similar to the way it's done at the top of this page:</span></p> <p><span style="color:#222222; line-height:115%; font-family:'Segoe UI','sans-serif'; font-size:9.5pt"><span style="color:#222222; line-height:115%; font-family:'Arial','sans-serif'; font-size:7.5pt">Home | About | Services | News | Contact | Login</span></span></p> <p><span style="color:#222222; line-height:115%; font-family:'Segoe UI','sans-serif'; font-size:9.5pt"><span style="color:#222222; line-height:115%; font-family:'Times New Roman','serif'; font-size:12pt">and I don't want it to appear after the last item as it does using the latter method. Am I missing the right/easy way to do this?</span></span></p> 2012-05-10T21:06:06-04:004976233http://forums.asp.net/p/1802516/4976233.aspx/1?Re+Menu+SeparatorsRe: Menu Separators <p>The HTML for the links at the top of the post are very simple:</p> <p>&lt;li&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a data-uitype=&quot;markasanswer&quot; data-postid=&quot;4975414&quot; style=&quot;cursor:pointer&quot;&gt;Mark As Answer&lt;/a&gt;<br> &lt;li&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;/post/edit/4975414&quot;&gt;Edit&lt;/a&gt;&lt;/li&gt;&lt;/li&gt;</p> <p>As you can see, the pipe | character is included in the HTML. &nbsp;It also includes the CSS class &quot;separator&quot; which has padding to make it look pretty. &nbsp;Here is the CSS for that:</p> <p>.separator {<br> padding: 0 10px;<br> color: #BEBEBE;<br> }</p> 2012-05-11T09:35:22-04:004976374http://forums.asp.net/p/1802516/4976374.aspx/1?Re+Menu+SeparatorsRe: Menu Separators <p>thanks for your reply nut it does not work please check my code and tell me what is the problem. Please</p> <pre class="prettyprint">&lt;asp:Menu ID=&quot;Menu2&quot; runat=&quot;server&quot; Font-Bold=&quot;True&quot; Font-Names=&quot;Arial Black&quot; Font-Size=&quot;Large&quot; ForeColor=&quot;White&quot; ItemWrap=&quot;True&quot; Orientation=&quot;Horizontal&quot; CssClass=&quot;separator&quot;&gt; &lt;Items&gt; &lt;asp:MenuItem Text=&quot; &quot; Value=&quot;commonquestion&quot;&gt;&lt;/asp:MenuItem&gt; &lt;asp:MenuItem Text=&quot; &quot; Value=&quot;Branches&quot;&gt;&lt;/asp:MenuItem&gt; &lt;asp:MenuItem Text=&quot; &quot; Value=&quot;activity&quot;&gt;&lt;/asp:MenuItem&gt; &lt;asp:MenuItem Text=&quot; &quot; Value=&quot;about Org&quot;&gt;&lt;/asp:MenuItem&gt; &lt;asp:MenuItem Text=&quot;&quot; Value=&quot;Main&quot;&gt;&lt;/asp:MenuItem&gt; &lt;/Items&gt; &lt;StaticMenuItemStyle HorizontalPadding=&quot;21px&quot; VerticalPadding=&quot;50px&quot; /&gt; &lt;/asp:Menu&gt;</pre> <p></p> 2012-05-11T10:59:43-04:00