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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:20:00+00:00 2026-06-16T01:20:00+00:00

I have a horizontal ul li, the li element gets a 1 pixel black

  • 0

I have a horizontal ul li, the li element gets a 1 pixel black border. Two adjacent elements gets a 2 pixel border because the border from the left and right elements gets merged.

Is there any tricks to simulate the table border-collapse property for solving this?

  • 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-16T01:20:01+00:00Added an answer on June 16, 2026 at 1:20 am

    Like this:

    <ul>
        <li><a href="#">A Link</a></li>
        <li><a href="#">A Link</a></li>
        <li><a href="#">A Link</a></li>
        <li><a href="#">A Link</a></li>
    </ul>
    

    css:
    ​

    ul, li {
        margin:0;
        padding:0;
        list-style:none
    }
    
    li {
        float:left;    
    }    
    
    ​ul li a {
        display:block;
        padding:3px;
        border-top:1px solid #ff0000;   
        border-bottom:1px solid #ff0000; 
        border-right:1px solid #ff0000; 
    }
    
    ul li:first-child a {
        border-left:1px solid #ff0000
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a layout with three elements and its orientation is 'horizontal' I want
Do you know any controls inherited from the ItemsControl that have horizontal orientation of
I have a function when a user double clicks a horizontal list, that element
I have a horizontal menu consisting of <li> elements with display: inline . The
I have a simple, horizontal <Line> element. This line has a RotateTransform applied to
I have two elements on a page. One being the main content container and
Let's say I have an unordered list element displaying list items across a horizontal
If I have a Horizontal StackPanel with many elements, with different margin between them:
I need help with this two elements properties. According MDN element.scrollHeight this a height
I have run into a strange situation where I need to float two elements.

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.