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

  • Home
  • SEARCH
  • 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 8975279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:50:16+00:00 2026-06-15T18:50:16+00:00

Here is an example. http://jsfiddle.net/52c7t/ Simply: I’m trying to get the div on the

  • 0

Here is an example. http://jsfiddle.net/52c7t/

Simply: I’m trying to get the div on the right side, to have a border like the div on the left. (I’d want the border to be on the left side of the right div)

I tried a million different combinations and haven’t been able to do it. I was trying to avoid making an image and do this with css.

Thanks for your help!

UPDATE:

Image of what I mean. Sorry about my graphic design skills 😛

https://i.stack.imgur.com/cVPhl.png

HTML

<div id = "top_bar">
        <div  id="top_left_button" >border</div>
        <div  class = "trapezoid"> none </div>
</div>​

CSS

.trapezoid{
    vertical-align: middle;
    position:absolute;
    border-bottom: 60px solid blue;
    border-left: 45px solid transparent;
    border-top-left-radius:30px;
    *border-top-right-radius:15px;
    *border-bottom-right-radius:3px;
    height: 0;
    width: 50px;
    display: inline-block;
    right:1px;
}



#top_bar{
    background-color: #000;
    border-bottom: 1px solid #666;
    color: #222;
    position:fixed;
    left:0px;
    top: 0px;
    width:100%;
    overflow:hidden;
    height: 50%;
    font-weight: normal;
    white-space: nowrap;
    color: white;
    z-index:20; 
    line-height: 45px;
    min-width:320px;
    max-width: 320px;
    max-height:48px;
    border-radius: 5px;
    text-shadow: rgba(0,0,0,0.6) 0px -1px 0px; 
}

#top_bar:after {
    content: '';
    width: 10%;
    display: inline-block;
    font-size: 0;
    line-height: 0
}

#top_title, #top_left_button, #notifications, #top_right_button {
    color: white;
    height: 100%;
    overflow:hidden;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}
#top_left_button,#top_right_button{
    width: 20%;
    background: rgba( 100, 255, 255, .1 );
}


#top_left_button{
    border-right: 2px solid #666;

}​

EDIT: UPDATED LINK

  • 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-15T18:50:17+00:00Added an answer on June 15, 2026 at 6:50 pm

    The simple solution is to create another div since your blue div is already made up using the border property.

    That new div is essentially a clone of the blue div, but will be colored red and made a little larger using the CSS width property. This becomes a pseudo border for the blue div.

    Example of new div:

    .trapezoid-border{
        vertical-align: middle;
        position:absolute;
        border-bottom: 60px solid red;        /* Color Changed will be pseudo-border color */
        border-left: 45px solid transparent;
        border-top-left-radius:30px;
        *border-top-right-radius:15px;
        *border-bottom-right-radius:3px;
        height: 0;
        width: 53px;                       /* Extra 3 pix when compared to .trapezoid class width */
        display: inline-block;
        right:1px;
    }
    

    jsFiddle DEMO

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

Sidebar

Related Questions

i have this simple example here : http://jsfiddle.net/pTyvc/1/ i don't want the sub_menu div
Here's an example: http://jsfiddle.net/7g8GD/1/ Once you have entered an invalid input and hit enter
I'm trying to implement this example http://jsfiddle.net/gzF6w/1/ (from another question here on stak) on
Example here: http://jsfiddle.net/7h2Dh/ Got this html: <span>Text<div id=wtf>Content</div>Text</span> I need to set div display
Please review the fiddle here for an example: http://jsfiddle.net/TKJsc/1/ Basically i'm trying to make
Here is example: http://jsfiddle.net/pcNzb/9/ I just study, so i must have missed something or
Example here: http://jsfiddle.net/UVHtu/19/ I need to fill in the blank: HTML: <div id=options> <input
I am trying to set iframe height onload , here is example http://jsfiddle.net/hN6z3/1/ It
Example here: http://jsfiddle.net/KyW6c/2/ I have an ordered list. Each list item is a project
I have a working fade in/fade out jQuery example here: http://jsfiddle.net/mcgarriers/NJe63/6/ However, I'm wondering

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.