Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8911493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:57:31+00:00 2026-06-15T03:57:31+00:00

I am relatively new to front-end development so having a bit of an issue

  • 0

I am relatively new to front-end development so having a bit of an issue in finding the best way to organize a horizontal menu, which will contain a logo and a few menu options. In addition, I want to separate the horizontal menus by a wide |

Not sure how to do that.

This is what I have so far:

HTML:

 <header> 
 <img src="/images/logo.png" height="50px" id="front" />
 <nav>
 <ul>
 <li><a href="#">Home</a></li>
 <li><a href="#">About</a></li>
 <li><a href="#">Contact</a></li>
 </ul>
 </nav> 

CSS:

 body {
 margin: 0;
 background-color: #FFFFFF;
 }
 header {
 background-color: #009000;
 height: 85px;
 position: relative;
 }
 #front {
 margin-left: 20px;
 margin-top: 20px;
 }
 ul li {
 display: inline;
 list-style-type: none;
 margin-right: 34px;
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:57:32+00:00Added an answer on June 15, 2026 at 3:57 am

    This worked for me. Instead of using the pipe character, each list element (gotten with the selector “ul li”) has a thin right-hand border. You could also add <li> | </li> between each list item.

    Also, I’m floating the li elements left, rather than displaying them inline. Not sure if you want the nav inside of the header.

    HTML:

    <header>
      <img src="/images/logo.png" height="70px" id="front" />
      <nav>
        <ul>
          <li><a href="#">Home</a></li>
          <li><a href="#">About</a></li>
          <li class="last"><a href="#">Contact</a></li>
        </ul>
      </nav>
    </header>
    

    CSS:

    body {
        margin: 0;
    }
    header {
        background-color: #009000;
        height: auto;
        position: relative;
    }
    #front {
        margin-left: 20px;
        margin-top: 20px;
        float: left;
    }
    nav {
        float: left;
        margin-top: 30px;
    }
    ul {
        margin: 0;
        padding: 0;
        float: left;
    }
    ul li {
        list-style-type: none;
        float: left;
        border-right: 2px solid black;
        padding-right: 5px;
        padding-left: 5px;
    }
    ul li.last {
        border-right: 0px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am relatively new to front-end development with HTML5/JavaScript. I guess I should've researched
This is more of a best practices question. I'm doing some front-end web development
Relatively new to JavaScript, so wondering what is the best approach to achive the
I'm pretty new to CSS and have been finding my way around so far.
I'm relatively new to android, and wondering if there's a better way to do
I'm starting a new system creating using .NET MVC - which is a relatively
Relatively new to rails, I'm working on a simple rails app for a few
Relatively new to WinForms but I'm working on a small business app. Anyway, where
Im relatively new to the Android world but I have a quick question. I
Being relatively new to programming--think Programming in Objective-C by Kochan, Chapter 15--I'm wondering if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.