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

  • Home
  • SEARCH
  • 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 7693629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:08:04+00:00 2026-05-31T21:08:04+00:00

How to insert two hyperlinks side by side inside an li item? In the

  • 0

How to insert two hyperlinks side by side inside an li item?

In the html code below, I need to put “login” and “register” link side by side separated by a “|”. What modification is required in the below code to accomplish the task.

Thanks.

The html file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"></html> 
<html> 
<head> 
        <link href="styledel.css" rel="stylesheet" type="text/css" />
</head> 

<body>
<div id="navcontainer">
                <ul id="navlist">   
                     <li><a href="index.php">Home</a></li>
                    <li><a href="index.php">The Tool </a>                       
                        <ul id="subnavlist">
                            <li><a href="subtitle1.php" target = "_blank">Secondary Link</a></li>
                    </ul>
                        </li>
                    <li><a href="tutorials.php">Tutorials &AMP; FAQs</a></li>
                <li><a href="login.php" target="_blank">Login</a> | <a href="user_add.php" target="_blank">Register</a></li>      
        </ul>
</div>

</body>
</html>

The css file:

#navcontainer
{
border-right: 1px solid #000000;
padding: 0px;  /* menu look*/
font-family: 'Courier New',Courier,monospace;
background-color: #d4cfcf;
}

#navcontainer ul
{
list-style: none;
margin: 0px;
padding: 0px;
border: none;
}

#navcontainer li
{

border-bottom: 1px solid #90bade; /*separator*/
margin: 0;
}

#navcontainer li a  /*menu */
{
display: block;
padding: 5px .3em 5px .3em;
border-left: .3em solid #1958b7;
border-right: .3em solid #508fc4;
color: #004963;
text-decoration: none;
}

#navcontainer li a:hover  /*behavior on hover */
{
background-color: #ffffff;
color: #ad0000; 
}

#navcontainer li li   /*sub menu*/
{   
border-top: 1px solid #90bade;
border-bottom: 0;
margin: 0;
font-family: 'Courier New',Courier,monospace;
font-size: 13px;
}

#    navcontainer li li a  /* sub menu */
{
padding: 4px 4px 4px 15px;
color: #5b6f7b /* light slate color: #00788a  color of text */
}
/* navigation menu end */

Thanks a ton.

  • 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-05-31T21:08:05+00:00Added an answer on May 31, 2026 at 9:08 pm

    Try switching a little of the CSS out from the <a> tag to the <li> element instead, like below, where you remove display:block from the li a and move the border-decoration to the li. Then, where you have #navcontainer li li, remove the border-decoration by setting border-left:0px and border-right:0px;

    #navcontainer  li
    {
     padding: 5px .3em 5px .3em;
     border-left: .3em solid #1958b7;
    border-right: .3em solid #508fc4;
    border-bottom: 1px solid #90bade; /*separator*/
    margin: 0;
    }
    
    
    
    
    
    color: #004963;
    text-decoration: none;
    }
    
    #navcontainer li a:hover  /*behavior on hover */
    {
    background-color: #ffffff;
    color: #ad0000; 
    }
    
    #navcontainer li li   /*sub menu*/
    {   
    border-top: 1px solid #90bade;
    border-bottom: 0;
    margin: 0;
    font-family: 'Courier New',Courier,monospace;
    font-size: 13px;
    border-left:0px;
    border-right:0px;
    }
    
    #navcontainer li li a  /* sub menu */
    {
    padding: 4px 4px 4px 15px;
    color: #5b6f7b /* light slate color: #00788a  color of text */
    }
    /* navigation menu end */​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code that should insert two fields into a database via
I need to insert two instances of tt_news on the same page and assign
I need to insert two new contacts with same display name. But all other
I have two MySQL queries in my PHP code. Basically I need the two
I have Two Arrays i need to insert these two arrays data into database
I want to insert two table rows inside a table row vertically. this is
I have two different things to happen at once.., basically I need to insert
How can I insert two different values into columns of a table in a
I'm using the ASP.NET binary for my FCKeditor, and needs to insert two editors
I have two insert statements, almost exactly the same, which run in two different

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.