Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Vertical Navigation Bar?

Community Beginner ,
Mar 19, 2019 Mar 19, 2019

I am a beginner to Dreamweaver and am looking to know how to design and create a vertical navigation bar. I have only ever done horizontal menus and I want to change it up a bit. What steps would I take?

2.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 19, 2019 Mar 19, 2019

CSS Navigation Bar

Start with a new HTML document and an unordered list of links.

<nav>

<ul>

<li><a href="#">Link 1</a></li>

<li><a href="#">Link 2</a></li>

<li><a href="#">Link 3</a></li>

<li><a href="#">Link 4</a></li>

</ul>

</nav>

Style your navigation lists with CSS by adding this to your stylesheet.

nav ul {

  list-style-type: none;

  margin: 0;

  padding: 0;

  width: 200px;

  background-color: #f1f1f1;

}

nav li a {

  display: block;

  color: #000;

  padding: 8px 16px;

  text-decoration: none;

}

/* Change the lin

...
Translate
Community Expert ,
Mar 19, 2019 Mar 19, 2019

CSS Navigation Bar

Start with a new HTML document and an unordered list of links.

<nav>

<ul>

<li><a href="#">Link 1</a></li>

<li><a href="#">Link 2</a></li>

<li><a href="#">Link 3</a></li>

<li><a href="#">Link 4</a></li>

</ul>

</nav>

Style your navigation lists with CSS by adding this to your stylesheet.

nav ul {

  list-style-type: none;

  margin: 0;

  padding: 0;

  width: 200px;

  background-color: #f1f1f1;

}

nav li a {

  display: block;

  color: #000;

  padding: 8px 16px;

  text-decoration: none;

}

/* Change the link color on hover, tap & click */

nav li a:hover,

nav li a:focus,

nav li a:active{

  background-color: #555;

  color: white;

}

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 20, 2019 Mar 20, 2019

alexisr4815162342  wrote

I am a beginner to Dreamweaver and am looking to know how to design and create a vertical navigation bar. I have only ever done horizontal menus and I want to change it up a bit. What steps would I take?

A link to a responsive vertical navigation tutorial was posted in this forum just a few days ago, which might be appropriate for what you are looking for.

Responsive Animated Sidebar Menu From Scratch with HTML & CSS - YouTube

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 29, 2019 Mar 29, 2019
LATEST

Thank you so much!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines