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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T14:54:36+00:00 2026-05-29T14:54:36+00:00

I have a div that is rectangular with some cute rounded corners. This is

  • 0

I have a div that is rectangular with some cute rounded corners. This is the appearence of it;

no-tab

But, what I should do is, put the header in a tab but it wount be clickable. Just the looks.This is the way it should look

with tab

Is there an easy way to do this? Or should I make the background an image? The div and the header is typical divs with height, width etc. The header has an image only. I could really use some suggestions. I would love to get some help with the CSS of it. It is Openx so it is kind of hard to me to understand each line of code in the project. I am very new at this.

  • 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-29T14:54:37+00:00Added an answer on May 29, 2026 at 2:54 pm

    It can be done completely without javascript, just plain old css..

    If you have the markup

     <div id="stuff">
         <h1>title</h1>
         Lorem ispum dolor sit amet
     </div>
    

    (I have an <h1>, but in your case it would be an Image. Except for that there should be no difference)

    Then a css like the following should do the trick:

     #stuff {
         margin: 100px;
         position:relative;
         background-color: silver;
         -moz-border-radius-topleft: 30px;
         -moz-border-radius-topright: 0px;
         -moz-border-radius-bottomright: 30px;
         -moz-border-radius-bottomleft: 30px;
         -webkit-border-radius: 30px 0px 30px 30px;
         border-radius: 30px 0px 30px 30px;
         padding: 30px;
     }
    
     #stuff h1 {
         position: absolute;
         top: -40px;
         height: 40px;
         right: 0px;
         left: 50%;
         background-color: silver;
         padding: 10px;
         -moz-border-radius-topleft: 30px;
         -moz-border-radius-topright: 0;
         border-radius: 30px 0 0 0;
     }
    

    You can see a working example here: http://jsfiddle.net/4RPhu/

    basically you’re styling the div, and then positioning the “Tab” absolutely relative to the div, with negative top value so it sticks out, and then simply on the left. Just adjust the values according to your needs.

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

Sidebar

Related Questions

I have a div that's set to overflow: auto; . This contents of this
I have a div that looks like this: <div> That's <div id=output></div> </div> The
I have a div that looks like this <div class=listItem jrFeatured> I want it
I have a div that is getting updated by periodically_call_remote. When this div is
Hey i have this div that shows as a popup: <div class=popup> </div> Then
I want to put a red rectangular <div> element over my webpage so that
I have a DIV that slides open to the height of the content, but
I have this div that overlays images to color them blue when you mouseover.
Hi have a div that's wrapping images..The width of this DIV can change so
I have a div that will not stay put, it travels outside of the

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.