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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:46:56+00:00 2026-06-15T10:46:56+00:00

I want to give an element a border-top with a tab at the right

  • 0

I want to give an element a border-top with a tab at the right corner like this:

Since this will be a repeated element within an Adobe Business Catalyst template, I want it to be pure CSS or at least CSS and javascript, without the use of any images. Is there any way this can be done?

Since it’s just a decorative element, it doesn’t have to be cross-browser.

  • 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-15T10:46:57+00:00Added an answer on June 15, 2026 at 10:46 am

    Have a look at this:

    http://jsfiddle.net/8hB7E/

    HTML:

    <body>
    <div class="element">
    
    </div>
    </body>
    

    CSS:

    body { background: #555 }
    
    .element { background: #000; border-top: 2px solid #fff; height: 100px; position: relative; width: 300px; }
    
    .element:after { background: #fff; content: " "; height: 10px; position: absolute; right: 0; top: 0; width: 20px; }
    

    It utilises the :after pseudo-element (which I find to be really useful!)

    For more info see here:

    http://coding.smashingmagazine.com/2011/07/13/learning-to-use-the-before-and-after-pseudo-elements-in-css/

    Unfortunately this won’t work in IE7 or 6 – it’s not core to the functionality of the website though, so I’d say it’s ok as is.

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

Sidebar

Related Questions

I want to give integer input to Ruby like this: 12 343 12312 12312
In this example http://jsbin.com/inoka4 no width is defined for parent element if i want
I want to create my own expandable/collapsable tree-like UserControl, which nodes are the Border
Using jQuery I want to give a specific element the same width (or min-width
This will be a bit abstract but I have a method like this: private
I have this: http://jsfiddle.net/ETm93/ Now my floated element, leftPanel is having a margin-right: 20px;
How to give border to any element using css without adding border-width to the
i want to give blink effect to an element by using addClass and removeClass
I want to give an alert after person sign up successfully. And then I
I want to give an object an attribute once a transition is finished. I'm

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.