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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:46:43+00:00 2026-05-17T14:46:43+00:00

I did this before but I can’t remember how to do it again. Image

  • 0

I did this before but I can’t remember how to do it again.

Image of what i’m trying to get:

https://i.stack.imgur.com/SF3VO.jpg

and what I have so far

alt text

In between each link,, theres two borders. yes I know how to make the effect, put two borders together. But the problem is I can’t do it!

At first I tried Jefferey ways Technic.

nav ul li:before { border-left: 1px solid red;  content: ''; margin: 0 -30px; position: absolute; height: 20px;   }
nav ul li:after { border-right: 1px solid white; content: ''; margin: 0 39px; position: absolute; height: 20px;  }

It worked, except the borders from the left and right end of the nav is sticking out. I tried :first-of-type and :last-of-type to try to remove the borders at the end, but they didn’t go away.

Then, I tried just using both :first-of-type and :last-of-type to create the borders,but again. it didn’t work. So I don’t really know what to do to create the effect! I wish there was a way to remove the front and end borders with Jefferey Ways code but I can’t. Can anybody help?

Heres the whole css of the nav.

nav { background: #282828 url(../images/nav-bg.png) repeat-x; border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px; -o-border-radius: 6px; margin: 24px auto; padding: 11px 29px; width: 670px; }
nav ul {}
nav ul li { display: inline; padding: 32px; margin: 0 auto;  }
nav ul li:before { border-right: 1px solid red; }
nav ul li:odd { border-right: 1px solid white; }
nav ul li a { color: #626262; height: 20px;  }
  • 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-17T14:46:43+00:00Added an answer on May 17, 2026 at 2:46 pm
    #nav { 
        background: #282828 url(../images/nav-bg.png) repeat-x; 
        border-radius: 6px; 
        -webkit-border-radius: 6px; 
        -moz-border-radius: 6px; 
        -o-border-radius: 6px; 
        margin: 24px auto; 
        padding: 11px 29px; 
        width: 670px; }
    #nav ul { list-style: none; padding: 0; margin: 0;}
    #nav ul li { 
        display: inline; 
        padding: 32px; 
        margin: 0 auto; 
        border-left: 1px solid #LIGHTERCOLOR;
        border-right: 1px solid #DARKERCOLOR;
    }
    #nav ul li:first-child { border-left: 0; }
    #nav ul li a { color: #626262; height: 20px;  }
    

    But I would suggest you cut out the separator as an image and put it on li as

    background: transparent url(border-image.png) left center no-repeat;
    

    and on the li:first-child have

    background: none;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've had this before, but can't seem to replicate the steps I did back
I did this in the past, and can't remember the correct command (I think
HI i did this code with help of Marc Gravell in Why can't I
I did some googling to try to answer this question but even after that
I did this tests and the results seems the count function scale linearly. I
i did this in msvc 2005. typedef void (*cleanup_t)(); void func(cleanup_t clean) { cleanup_t();
I am stress testing a .NET web application. I did this for 2 reasons:
I am interested in writing utf-8 encoded strings to a file. I did this
How did you go about this: did you use exe and dlls or created
this is what I did. is there a better way in python? for k

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.