Create horizontal and vertical navigation bars for web pages in Dreamweaver. Horizontal navigation bar: Create using a table, set cell sizes, alignment and links. Vertical navigation bar: Create using hierarchical lists, set list item text, links and styles. Adjust the alignment to suit your needs.
How to use Dreamweaver to create horizontal and vertical navigation bars for web pages
Horizontal navigation bar
-
Insert table: Click "Insert" > "Table" to create a table with more than 1 row and 2 columns.
-
Format the table: Right-click the table, select "Table Properties" and enter the desired dimensions in the "Width" and "Height" fields.
-
Adjust cells: Select the cell you want as a menu item, right-click and select "Cell Properties". Enter the desired dimensions in the Width and Height fields and select Centered under Horizontal alignment.
-
Add link: Insert a link in the menu item cell to point to the relevant page. Right-click the cell, select Insert > Hyperlink, and enter the URL of the target page.
-
Set borders and background: Set the borders and background colors of tables and cells as needed. Select the table or cell, right-click and select Table Properties or Cell Properties to make adjustments in the Borders or Background tab.
Vertical navigation bar
-
Insert a hierarchical list: Click "Insert" > "List" > " Hierarchical list".
-
Create list items: Enter the text of the navigation bar item and press Enter to create a sub-item. Use indented tabs to create nested lists.
-
Add link: Insert a link in the text of the list item, pointing to the relevant page. Select the list item, right-click and select Insert > Hyperlink, enter the URL of the target page.
-
Styling: Set the appearance of the navigation bar by applying styles or CSS classes. Select the list or list item, right-click and select Styles or CSS to adjust accordingly.
-
Adjust alignment: Adjust the alignment of the navigation bar as needed. Select the list or list item, right-click and select Format Paragraph, select the option you want under Alignment.
The above is the detailed content of How to create horizontal and vertical navigation bars for web pages in dreamweaver. For more information, please follow other related articles on the PHP Chinese website!