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 6978985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:49:41+00:00 2026-05-27T17:49:41+00:00

I have a website with a navigation and some borders as a devider. But

  • 0

I have a website with a navigation and some borders as a devider. But I don’t want the border to stretch from top ’till bottom. Any idea how to do this?

Currently, I have the first image, but I would like to make the lower one. I was thinking padding or line-height, but I’m not sure…

enter image description here

  • 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-27T17:49:42+00:00Added an answer on May 27, 2026 at 5:49 pm

    use padding yes

    .yourlink {display:inline-block;padding:10px 0; border-right: 1px solid #000;}
    

    Worked out a solution:
    http://jsfiddle.net/X4DZS/1/

    HTML

    <ul id="mymenu">
        <li><a href="#">item 1</a></li>
        <li><a href="#">item 2</a></li>
        <li><a href="#">item 3</a></li>
    </ul>
    

    CSS

    #mymenu {display:block;height:40px;padding:10px;background-color:Green;}
    #mymenu li {display:inline-block;background-color:Green;float:left;}
    #mymenu a {display:block;color:#000;padding:10px;border-right:1px solid #000;height:20px;text-decoration:none;}
    #mymenu li:hover {background-color: Blue;}
    #mymenu li:hover a {color:#fff;text-decoration:underline;}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I have some nice navigation button .png's given to me from a friend
I have integrated paypal mini-cart into my website but for some reason it is
I have website, usually all looks fine but sometimes one div is on the
We have a website that uses #include file command to roll info into some
I have some website which requires a logon and shows sensitive information. The person
I have a div inside an li as part of a top navigation for
Can I use UML for modelling website navigation? If so someone give me some
I have a complicated website design (downloaded a design + css from the web)
I'm trying to have the navigation bars for my website to be a little
I would like to have a menu list, used in a website navigation, where

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.