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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:39:44+00:00 2026-05-30T12:39:44+00:00

Attempting to use a custom hex color for my css triangle (border). However since

  • 0

Attempting to use a custom hex color for my css triangle (border). However since it uses border properties I am unsure how to go about doing this. I would like to steer clear of javascript and css3 simply because of compatibility. I am trying to have the triangle have a white background with a 1px border (around the angled sides of the triangle) with color #CAD5E0. Is this possible? Here’s what I have so far:

.container {
    margin-left: 15px;
    width: 200px;
    background: #FFFFFF;
    border: 1px solid #CAD5E0;
    padding: 4px;
    position: relative;
    min-height: 200px;
}

.container:after {
    content: '';
    display: block;
    position: absolute;
    top: 10px;
    left: 100%;
    width: 0;
    height: 0;
    border-color: transparent transparent transparent #CAD5E0;
    border-style: solid;
    border-width: 10px;
}​

My fiddle: http://jsfiddle.net/4ZeCz/

  • 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-30T12:39:45+00:00Added an answer on May 30, 2026 at 12:39 pm

    You actually have to fake it with two triangles….

    .container {
        margin: 15px 30px;
        width: 200px;
        background: #fff;
        border: 1px solid #a00;
        position: relative;
        min-height: 200px;
        padding: 20px;
        text-align: center;
        color: #fff;
        font: bold 1.5em/180px Helvetica, sans-serif;
        text-shadow: 0 0 1px #000;
    }
    
    .container:after,
    .container:before {
        content: '';
        display: block;
        position: absolute;
        left: 100%;
        width: 0;
        height: 0;
        border-style: solid;
    }
    
    .container:after {
        top: 10px;
        border-color: transparent transparent transparent #fdd;
        border-width: 10px;
    }
    
    .container:before {
        top: 9px;
        border-color: transparent transparent transparent #a00;
        border-width: 11px;
    }
    

    Updated Fiddle here

    enter image description here

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

Sidebar

Related Questions

Ah, yet another CSS issue I'm having. I'm attempting to use custom buttons, replacing
I am attempting to use a custom font for a TextView on Android, following
I am attempting to use MapKit to create a custom map (similar to this
I'm attempting to use Redmon http://www.winimage.com/misc/redmon/ to send print jobs to a custom C#
I'm building a custom search page and attempting to use an existing custom search
I'm attempting to write a custom widget and I want to use existing UI
I am attempting to use a custom workflow activity to auto-increment build numbers based
I am currently attempting to use a custom module as the first page when
Ok, I am attempting to use this custom extension to perform an entity update.
I am attempting to use a custom implementation of the SharedPreferences interface to persist

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.