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

The Archive Base Latest Questions

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

Possible Duplicate: HTML: Sub-pixel border The default border:1px is too big. However, border: 0.5px

  • 0

Possible Duplicate:
HTML: Sub-pixel border

The default border:1px is too big. However, border: 0.5px solid; is not working.
Is there a CSS solution that would make the border half the size?

  • 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-16T05:55:21+00:00Added an answer on June 16, 2026 at 5:55 am

    A pixel is the smallest unit value to render something with, but you can trick thickness with optical illusions by modifying colors (the eye can only see up to a certain resolution too).

    Here is a test to prove this point:

    div { border-color: blue; border-style: solid; margin: 2px; }
    
    div.b1 { border-width: 1px; }
    div.b2 { border-width: 0.1em; }
    div.b3 { border-width: 0.01em; }
    div.b4 { border-width: 1px; border-color: rgb(160,160,255); }
    <div class="b1">Some text</div>
    <div class="b2">Some text</div>
    <div class="b3">Some text</div>
    <div class="b4">Some text</div>

    Output

    enter image description here

    Which gives the illusion that the last DIV has a smaller border width, because the blue border blends more with the white background.


    Edit: Alternate solution

    Alpha values may also be used to simulate the same effect, without the need to calculate and manipulate RGB values.

    .container {
      border-style: solid;
      border-width: 1px;
      
      margin-bottom: 10px;
    }
    
    .border-100 { border-color: rgba(0,0,255,1); }
    .border-75 { border-color: rgba(0,0,255,0.75); }
    .border-50 { border-color: rgba(0,0,255,0.5); }
    .border-25 { border-color: rgba(0,0,255,0.25); }
    <div class="container border-100">Container 1 (alpha = 1)</div>
    <div class="container border-75">Container 2 (alpha = 0.75)</div>
    <div class="container border-50">Container 3 (alpha = 0.5)</div>
    <div class="container border-25">Container 4 (alpha = 0.25)</div>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Get HTML Form Field Names I have a very big form and
Possible Duplicate: Replace all < and > that are NOT part of an HTML
Possible Duplicate: Why not use tables for layout in HTML? Just wondering, I thought
Possible Duplicate: HTML/CSS: Image/div is not appearing in Mozilla but is in IE? I
Possible Duplicate: javascript WYSIWYG HTML editors? Im not quite sure how to put this
Possible Duplicate: HTML Text Input allow only Numeric input I used this script function
Possible Duplicate: Sending HTML email from PHP I need to send an html mail
Possible Duplicate: How to select html nodes by ID with jquery when the id
Possible Duplicate: mail() header problem for html email I'm using the following for $headers
Possible Duplicate: How to parse and process HTML with PHP? I am brand new

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.