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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:28:02+00:00 2026-05-18T02:28:02+00:00

If I specify border: 1px outset blue; as the style for an element, the

  • 0

If I specify border: 1px outset blue; as the style for an element, the browser renders two different border colors: one for the top and left borders, and another for the bottom and right borders.

li
  { border: 10px outset #0000FF;
    color: #FFF;
    background-color: #0000FF;
    width: 30%;
    }

p
  { margin: 1em 2em;
    text-align: center;
    }
<li><p>Hi!</p></li>

Given a single color specified for the border, how does the browser determine which colors to render the border in? Alternately, given a graphical comp (a .PSD for example) that shows an outset border with two different colors, how can I choose a single border color to specify to get the closest results to the comp?

  • 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-18T02:28:03+00:00Added an answer on May 18, 2026 at 2:28 am

    There is no one algorithm specified by CSS:

    UAs may choose their own algorithm to calculate the actual colors used.

    Different browsers do significantly different things:

    • Firefox blends the highlight border with full white (about 57%) and the lowlight border with full black (about 68%).

    • Opera blends the borders with white and black less strongly (25% each).

    • WebKit (Safari, Chrome) blends the lowlight border to black (33%) whilst leaving the highlight border as the untouched stated colour.

    • IE splits the width of the border in two when you use inset/outset. The inside half of the border has a lowlight shade of 75% black and an untouched highlight colour. The outside half of the border has a highlight colour shaded 25% to black and a lowlight colour shaded 50% to black. This has the effect of reproducing the border style of the Windows 9x/NT4/2000 button if the border-width is 2px.

    Unfortunately you cannot get consistent results out of inset/outset/groove/ridge borders. Often the results are different but still OK across browsers; if that’s not good enough you’ll need to specify each border side colour explicitly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using -webkit-border-image to specify my main sprite image in a style. The sprite
Can I specify a border like 1px solid color1/color2. for the situation if I
<html> <style type="text/css"> .table { display: table;} .tablerow { display: table-row; border:1px solid black;}
I'm modifying the default 'ChildWindow' style and I'd like to specify a different image
In CSS, you can specify the spacing between table cells using the border-spacing property
Can some one specify the windows API, one need to use in order to
I know I can specify one for each form, or for the root form
I have designed specified some CSS style for general hyperlinks. I want to specify
I believe there may be a bug in chrome's rendering of border colors. Here
How do you specify that a foreign key constraint should be a 1:1 relationship

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.