---
title: Creating the main menu
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

Now we will add a dynamic menu to the master page.

1. In the **Pages** application, select the root page (**My website**).
2. Open the **Design** tab.
3. Add the **Drop-down menu** web part to the **zoneMenu** zone.
4. Set the following properties of the web part (in the **Design** section):

   | Property  | Value      | Description                                                                                                                                                                                                                      |
   | --------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | CSSPrefix | ;sub       | Allows you to add prefixes before the names of the CSS classes applied to the menu. The ;sub value uses unmodified class names for the main (first) menu level and the sub prefix for the second level and all other sub-levels. |
   | Layout    | Horizontal | Arranges the menu items horizontally.                                                                                                                                                                                            |
5. Click **Save & Close**.

The web part appears in the zone on the **Design** tab.

![Adding the Drop-down menu web part](https://docs.kentico.com/docsassets/k81tutorial/creating-the-main-menu/Design_Menu.png "Adding the Drop-down menu web part")

The menu will display the child pages after you create them under the website root.
