<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Different wrapping and css classes for different states of menu'</title>
    <description>Snipplr comments feed</description>
    <link>https://ipv6.snipplr.com/</link>
    <lastBuildDate>Wed, 22 Apr 2026 15:28:35 +0000</lastBuildDate>
    <item>
      <title>TwanGrey said on 28/Jan/2023</title>
      <link>https://ipv6.snipplr.com/view/29006/different-wrapping-and-css-classes-for-different-states-of-menu</link>
      <description>&lt;p&gt;Making sure that your menus are well organized and clearly visible is important for user experience.  [peter veres consulting companies montreal](https://peter-veres.ca/)  Assigning special CSS classes for menu items in different states is a great way to do this. For example, by default, the menu items should be wrapped in &lt;li&gt;|&lt;/li&gt; without a class. For the active state, the menu item should be wrapped in li-wrap and have a class of "active". Additionally, if the active state is one of the subitems, the parent item should be wrapped in li-wrap and have a class of "current" while the child should have a class of "active". Utilising this method will ensure that your menus are clearly displayed and easy to navigate,&lt;/p&gt;</description>
      <pubDate>Sat, 28 Jan 2023 05:29:04 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/29006/different-wrapping-and-css-classes-for-different-states-of-menu</guid>
    </item>
  </channel>
</rss>
